We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34c2ae7 commit e521079Copy full SHA for e521079
1 file changed
tool/bin/dt.dart
@@ -16,13 +16,17 @@ void main(List<String> args) async {
16
.whenComplete(sharedStdIn.terminate);
17
18
exit(result is int ? result : 0);
19
- } catch (e) {
+ } catch (e, st) {
20
if (e is UsageException) {
21
stderr.writeln('$e');
22
+ stderr.writeln(st);
23
+
24
// Return an exit code representing a usage error.
25
exit(64);
26
} else {
27
28
29
30
// Return a general failure exit code.
31
exit(1);
32
}
0 commit comments