Halt a remote job if the 'import' step fails.
@@ -390,6 +390,10 @@ async def upload_import_dir(chip):
allow_redirects=False) as resp:
if resp.status == 302:
redirect_url = resp.headers['Location']
+ elif resp.status > 400:
+ print(await resp.text())
+ print('Error importing project data; quitting.')
+ sys.exit(1)
else:
print(await resp.text())
return
