From cccf44faa64af2b9e0e9436f36960852b50532c4 Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Thu, 28 Feb 2019 23:53:32 -0800 Subject: [PATCH] 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. --- bin/flutter.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/flutter.bat b/bin/flutter.bat index 544e77a8d7..cff515aa70 100644 --- a/bin/flutter.bat +++ b/bin/flutter.bat @@ -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