diff --git a/bin/querya_ext_tester.dart b/bin/querya_ext_tester.dart index 95681fbd..4417754f 100644 --- a/bin/querya_ext_tester.dart +++ b/bin/querya_ext_tester.dart @@ -31,7 +31,13 @@ Options: -h, --help show this help '''; -Future main(List args) async { +/// The exit code is set through `exitCode`: a Dart `main` cannot return one +/// (the `Future` it used to return was ignored, so a failed run exited 0). +Future main(List args) async { + exitCode = await _run(args); +} + +Future _run(List args) async { String? dir; var target = '0.5.0'; String? connect;