From 333d634134fb5010414fe55e4a69381b3f803668 Mon Sep 17 00:00:00 2001 From: Stephen Salinas Date: Mon, 22 Feb 2016 11:27:10 -0500 Subject: [PATCH] include docker exeception cause in thread checker --- .../singularity/executor/SingularityExecutorThreadChecker.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SingularityExecutor/src/main/java/com/hubspot/singularity/executor/SingularityExecutorThreadChecker.java b/SingularityExecutor/src/main/java/com/hubspot/singularity/executor/SingularityExecutorThreadChecker.java index 38fa1a93ae..420fe9a129 100644 --- a/SingularityExecutor/src/main/java/com/hubspot/singularity/executor/SingularityExecutorThreadChecker.java +++ b/SingularityExecutor/src/main/java/com/hubspot/singularity/executor/SingularityExecutorThreadChecker.java @@ -123,7 +123,7 @@ private int getNumUsedThreads(SingularityExecutorTaskProcessCallable taskProcess dockerPid = Optional.of(possiblePid); } } catch (DockerException e) { - throw new ProcessFailedException(String.format("Could not get docker root pid due to error: %s", e)); + throw new ProcessFailedException("Could not get docker root pid due to error", e); } }