From f38c1c18a871e3d587aac48da6f9d0c0ba79e0b7 Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Tue, 23 Jul 2019 06:20:52 +0200 Subject: [PATCH] tools: install.bat: bail out if idf_tools.py call fails Makes installation errors easier to spot. --- install.bat | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/install.bat b/install.bat index fdb9771a46..784fd850cd 100644 --- a/install.bat +++ b/install.bat @@ -10,10 +10,13 @@ set IDF_PATH=%IDF_PATH:~0,-1% echo Installing ESP-IDF tools python.exe %IDF_PATH%\tools\idf_tools.py install +if %errorlevel% neq 0 goto :end echo Setting up Python environment python.exe %IDF_PATH%\tools\idf_tools.py install-python-env +if %errorlevel% neq 0 goto :end echo All done! You can now run: echo export.bat -:: Clean up + +:end