Skip to content

Commit c72d2e7

Browse files
committed
Improve log message for server exit and simplify test failure detection pattern
1 parent 1f9cb02 commit c72d2e7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ghcide/src/Development/IDE/LSP/LanguageServer.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,10 @@ data Log
7070

7171
instance Pretty Log where
7272
pretty = \case
73+
LogServerExitWith (Right 0) ->
74+
"Server exited with succefully"
7375
LogServerExitWith (Right code) ->
74-
"Server exited with code" <+> pretty code
76+
"Server exited with failure code" <+> pretty code
7577
LogServerExitWith (Left _) ->
7678
"Server forcefully exited due to exception in reactor thread"
7779
LogShutDownTimeout seconds ->

scripts/open-close-loop.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ echo "[loop] Starting at ${start_ts}" >&2
3232

3333
# Pattern strings to detect issues (keep simple & literal for robustness)
3434
BROKEN_PIPE_RE='Broken pipe'
35-
TEST_FAILED_RE='tests failed'
35+
TEST_FAILED_RE='fail'
3636
DEBUG_DETECT="${DEBUG_DETECT:-0}"
3737

3838
if [[ -z "${NO_BUILD_ONCE:-}" ]]; then

0 commit comments

Comments
 (0)