Skip to content

Commit

Permalink
+decoding error codes for users
Browse files Browse the repository at this point in the history
  • Loading branch information
3F committed Apr 8, 2024
1 parent 17a9430 commit f10106e
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion netfx4sdk.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,28 @@ goto endpoint
:: Post-actions
:endpoint

if not !EXIT_CODE!==0 call :warn "Failed: !EXIT_CODE!"
if !EXIT_CODE! NEQ 0 (
call :warn "Failed: !EXIT_CODE!"

if !EXIT_CODE! EQU %ERROR_PATH_NOT_FOUND% (
call :warn "File or path was not found, use -debug"
)
else if !EXIT_CODE! EQU %ERROR_NO_MODE% (
call :warn "Mode is not specified"
)
else if !EXIT_CODE! EQU %ERROR_ENV_W% (
call :warn "Wrong or unknown data in specified mode"
)
else if !EXIT_CODE! EQU %ERROR_HMSBUILD_UNSUPPORTED% (
call :warn "Unsupported version of hMSBuild"
)
else if !EXIT_CODE! EQU %ERROR_HMSBUILD_NOT_FOUND% (
call :warn "hMSBuild is not found, try -global"
)
else if !EXIT_CODE! EQU %ERROR_ROLLBACK% (
call :warn "Something went wrong. Try to restore manually: %rdir%"
)
)
exit /B !EXIT_CODE!


Expand Down

0 comments on commit f10106e

Please sign in to comment.