Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Halt client threads on database errors
  • Loading branch information
viniciusam committed Aug 5, 2017
commit 2cf7b661aa91d7aa2b2d2b225ee630147a4bccfa
2 changes: 2 additions & 0 deletions src/main/java/io/github/utplsql/cli/RunCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ public int run() throws Exception {
} catch (SQLException e) {
System.out.println(e.getMessage());
returnCode[0] = Cli.DEFAULT_ERROR_CODE;
executorService.shutdownNow();
}
});

Expand All @@ -158,6 +159,7 @@ public int run() throws Exception {
} catch (SQLException | FileNotFoundException e) {
System.out.println(e.getMessage());
returnCode[0] = Cli.DEFAULT_ERROR_CODE;
executorService.shutdownNow();
} finally {
if (fileOutStream != null)
fileOutStream.close();
Expand Down