From 4eea54780a570f65fc3fd2d80d57ada17440ac88 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Tue, 6 Feb 2018 17:49:12 +0000 Subject: [PATCH] start.cmd: pause on exit with error code in CMD Closing the command window immediately when an error occurs is particularly unhelpful. This keeps the command window open so that the user can see what went wrong. [ci skip] --- start.cmd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/start.cmd b/start.cmd index 64a3f5ed1..a159ed70b 100644 --- a/start.cmd +++ b/start.cmd @@ -24,5 +24,6 @@ if exist PocketMine-MP.phar ( if exist bin\mintty.exe ( start "" bin\mintty.exe -o Columns=88 -o Rows=32 -o AllowBlinking=0 -o FontQuality=3 -o Font="Consolas" -o FontHeight=10 -o CursorType=0 -o CursorBlinks=1 -h error -t "PocketMine-MP" -i bin/pocketmine.ico -w max %PHP_BINARY% %POCKETMINE_FILE% --enable-ansi %* ) else ( - %PHP_BINARY% -c bin\php %POCKETMINE_FILE% %* + REM pause on exitcode != 0 so the user can see what went wrong + %PHP_BINARY% -c bin\php %POCKETMINE_FILE% %* || pause )