mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
This PR makes the Windows logstash.bat exit with the last %ERRORLEVEL% at the end, so that any error in running Logstash will get propagated back to the command line.
Before this change, logstash.bat would always exit with code 0 - success (when doing cmd.exe /C logstash.bat), even if the java.exe process exited with a non-zero code (e.g. due to Logstash throwing an error at runtime).
(cherry picked from commit 1f9ef97836
)
Co-authored-by: Dion Williams <dionrhys1@gmail.com>
This commit is contained in:
parent
75d616eba7
commit
2c84a5d672
1 changed files with 1 additions and 0 deletions
|
@ -84,3 +84,4 @@ goto :eof
|
|||
|
||||
:end
|
||||
endlocal
|
||||
exit /B %ERRORLEVEL%
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue