Skip to content

Commit

Permalink
Ensure error stack trace is always printed out for each build
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
  • Loading branch information
peterzhuamazon committed Apr 11, 2024
1 parent 62efd28 commit 6939273
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/run_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ def main() -> int:
builder.build(build_recorder)
builder.export_artifacts(build_recorder)
logging.info(f"Successfully built {component.name}")
except:
except Exception as e:
logging.error(f"ERROR: {e}")
logging.error(f"Error building {component.name}, retry with: {args.component_command(component.name)}")
if args.continue_on_error and component.name not in ['OpenSearch', 'job-scheduler', 'common-utils', 'OpenSearch-Dashboards']:
failed_plugins.append(component.name)
Expand Down

0 comments on commit 6939273

Please sign in to comment.