Skip to content

Commit a8db030

Browse files
committed
Science Commit 5.
1 parent f406409 commit a8db030

3 files changed

Lines changed: 11 additions & 2 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
60286
1+
149577

modules/AE6E66/logging/backend.log

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Error: Could not find or load main class source.AE6E66Main
2+
Caused by: java.lang.ClassNotFoundException: source.AE6E66Main

scripts/start-backends.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,18 @@ for MOD_DIR in "${!MODULES[@]}"; do
124124

125125
echo -n " [*] Starting $MOD_DIR backend... "
126126

127-
if cd "$MOD_PATH" && bash start-backend.sh > /dev/null 2>&1; then
127+
set +e
128+
BACKEND_OUT=$(cd "$MOD_PATH" && bash start-backend.sh 2>&1)
129+
BACKEND_RC=$?
130+
set -e
131+
132+
if [ $BACKEND_RC -eq 0 ]; then
128133
echo ""
129134
SUCCESS+=("$MOD_DIR")
130135
else
131136
echo ""
137+
# Show last line of error for quick diagnosis
138+
echo "$BACKEND_OUT" | grep -i "error\|fail\|exception\|not found" | tail -2 | sed 's/^/ /'
132139
FAILED+=("$MOD_DIR")
133140
fi
134141
done

0 commit comments

Comments
 (0)