summaryrefslogtreecommitdiff
path: root/bin/spack.bat
diff options
context:
space:
mode:
Diffstat (limited to 'bin/spack.bat')
-rw-r--r--bin/spack.bat4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/spack.bat b/bin/spack.bat
index 3b6b7905a4..4781c42702 100644
--- a/bin/spack.bat
+++ b/bin/spack.bat
@@ -187,7 +187,7 @@ python "%spack%" %_sp_flags% %_sp_subcommand% %_sp_args%
goto :end_switch
:end_switch
-exit /B 0
+exit /B %ERRORLEVEL%
::########################################################################
@@ -220,4 +220,4 @@ for %%I in (%~2) do (
:pathadd "%~1" "%%I\%%Z"
)
)
-exit /B 0 \ No newline at end of file
+exit /B %ERRORLEVEL% \ No newline at end of file