Skip to content

Commit

Permalink
add exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
lgothelipe committed May 30, 2023
1 parent 3455321 commit e544505
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,4 +168,5 @@ def stop_deploy(deployment_id):

if deployment_info.get('deploymentInfo', {}).get('errorInformation'):
print('Deployment failed: %s' % deployment_info.get('deploymentInfo', {}).get('errorInformation', {}).get('code'))
print('Error: %s' % deployment_info.get('deploymentInfo', {}).get('errorInformation', {}).get('message'))
print('Error: %s' % deployment_info.get('deploymentInfo', {}).get('errorInformation', {}).get('message'))
exit(1)

0 comments on commit e544505

Please sign in to comment.