do not catch throwable

This commit is contained in:
Sebastian Sdorra
2015-01-18 21:34:45 +01:00
parent dcbd1d597e
commit 264cbbc9ad
2 changed files with 2 additions and 2 deletions

View File

@@ -96,7 +96,7 @@ public class BasicContextProvider implements SCMContextProvider
version = loadVersion(); version = loadVersion();
stage = loadProjectStage(); stage = loadProjectStage();
} }
catch (Throwable ex) catch (Exception ex)
{ {
this.startupError = ex; this.startupError = ex;

View File

@@ -190,7 +190,7 @@ public class DefaultCGIExecutor extends AbstractCGIExecutor
p = Runtime.getRuntime().exec(execCmd, env.getEnvArray(), workDirectory); p = Runtime.getRuntime().exec(execCmd, env.getEnvArray(), workDirectory);
execute(p); execute(p);
} }
catch (Throwable ex) catch (IOException ex)
{ {
getExceptionHandler().handleException(request, response, ex); getExceptionHandler().handleException(request, response, ex);
} }