aboutsummaryrefslogtreecommitdiff
path: root/cbt
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2016-03-06 18:25:05 -0500
committerChristopher Vogt <oss.nsp@cvogt.org>2016-03-06 18:25:05 -0500
commita9e9e03446bf9068e97686d73b87944da374c118 (patch)
tree1db3bc51f5e0bcafd24f67f64a06285147971ab4 /cbt
parent37d6bb3a9e5efacaa189a0c8288b05264d64a5a6 (diff)
downloadcbt-a9e9e03446bf9068e97686d73b87944da374c118.tar.gz
cbt-a9e9e03446bf9068e97686d73b87944da374c118.tar.bz2
cbt-a9e9e03446bf9068e97686d73b87944da374c118.zip
try to provide better error message if there is an exception in the nailgun launcher or appilcation script
Diffstat (limited to 'cbt')
-rwxr-xr-xcbt4
1 files changed, 3 insertions, 1 deletions
diff --git a/cbt b/cbt
index ea2bb66..f66d2b8 100755
--- a/cbt
+++ b/cbt
@@ -181,7 +181,9 @@ stage1 () {
log "Checking if nailgun is up yet." $*
$NG cbt.NailgunLauncher cbt.CheckAlive $CP "$CWD" $* >> $NAILGUN/target/nailgun.stdout.log 2>> $NAILGUN/target/nailgun.stderr.log
alive=$?
- if [[ $alive -eq 33 ]]; then
+ if [[ $alive -eq 131 ]]; then
+ echo "Nailgun call failed. Try 'cbt kill' and check the error log cbt/nailgun_launcher/target/nailgun.stderr.log" 1>&2
+ elif [[ $alive -eq 33 ]]; then
break
else
log "Nope. Sleeping for 1 second" $*