force basic errors to the console before exit

This commit is contained in:
Jonathan Shook 2020-03-24 20:38:15 -05:00
parent 9359681eca
commit 91ef327cb7

View File

@ -45,6 +45,8 @@ public class NBCLI {
cli.run(args);
} catch (Exception e) {
if (e instanceof BasicError) {
System.out.println("ERROR: " + e.getMessage());
System.out.flush();
logger.error("ERROR: " + e.getMessage());
System.exit(2);
} else {