Skip to content

Commit

Permalink
Log pub return code on failure on Windows (flutter#28356)
Browse files Browse the repository at this point in the history
When pub fails, log the %ERRRORLEVEL% to help diagnose the root cause of
the pub failure.
  • Loading branch information
cbracken committed Mar 1, 2019
1 parent 387f885 commit cccf44f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/flutter.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cccf44f

Please sign in to comment.