Unverified Commit cccf44fa authored by Chris Bracken's avatar Chris Bracken Committed by GitHub

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.
parent 387f8854
......@@ -138,7 +138,7 @@ GOTO :after_subroutine
ECHO Running pub upgrade...
CALL "%pub%" upgrade "%VERBOSITY%"
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
SET /A remaining_tries-=1
IF "%remaining_tries%" EQU "0" GOTO upgrade_retries_exhausted
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment