Log pub return code on failure on Windows (#28356)
When pub fails, log the %ERRRORLEVEL% to help diagnose the root cause of the pub failure.
This commit is contained in:
parent
387f885481
commit
cccf44faa6
@ -138,7 +138,7 @@ GOTO :after_subroutine
|
|||||||
ECHO Running pub upgrade...
|
ECHO Running pub upgrade...
|
||||||
CALL "%pub%" upgrade "%VERBOSITY%"
|
CALL "%pub%" upgrade "%VERBOSITY%"
|
||||||
IF "%ERRORLEVEL%" EQU "0" goto :upgrade_succeeded
|
IF "%ERRORLEVEL%" EQU "0" goto :upgrade_succeeded
|
||||||
ECHO Error Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (%remaining_tries% tries left)
|
ECHO Error (%ERRORLEVEL%): Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (%remaining_tries% tries left)
|
||||||
timeout /t 5 /nobreak 2>NUL
|
timeout /t 5 /nobreak 2>NUL
|
||||||
SET /A remaining_tries-=1
|
SET /A remaining_tries-=1
|
||||||
IF "%remaining_tries%" EQU "0" GOTO upgrade_retries_exhausted
|
IF "%remaining_tries%" EQU "0" GOTO upgrade_retries_exhausted
|
||||||
|
Loading…
x
Reference in New Issue
Block a user