Skip to content

Commit

Permalink
Print the error gracefully
Browse files Browse the repository at this point in the history
  • Loading branch information
temeddix committed Sep 17, 2024
1 parent af97db7 commit 2772606
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion flutter_package/bin/rinf.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ Future<void> main(List<String> args) async {
..addCommand(MessageCommand())
..addCommand(WasmCommand());

await runner.run(args);
try {
await runner.run(args);
} catch (error) {
// Print the error gracefully without backtrace.
print(error.toString().trim().red);
}
}

class ConfigCommand extends Command {
Expand Down

0 comments on commit 2772606

Please sign in to comment.