diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2016-03-06 18:25:05 -0500 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2016-03-06 18:25:05 -0500 |
commit | a9e9e03446bf9068e97686d73b87944da374c118 (patch) | |
tree | 1db3bc51f5e0bcafd24f67f64a06285147971ab4 /cbt | |
parent | 37d6bb3a9e5efacaa189a0c8288b05264d64a5a6 (diff) | |
download | cbt-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-x | cbt | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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" $* |