Skip to content

Commit d40c0ac

Browse files
committed
print what exception is caught
1 parent c925c97 commit d40c0ac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

vars/withChownWorkspace.groovy

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ def call(Closure body=null) {
66
try {
77
echo "chowning workspace"
88
sh 'docker run --rm -v $(pwd):/workspace busybox chown -R "$(id -u):$(id -g)" /workspace'
9-
} catch (Exception e) {}
9+
} catch (Exception e) {
10+
println e
11+
}
1012
}
1113
retVal
1214
}

0 commit comments

Comments
 (0)