Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve error reporting #6585

Merged
merged 2 commits into from
Aug 23, 2019
Merged

Improve error reporting #6585

merged 2 commits into from
Aug 23, 2019

Conversation

medikoo
Copy link
Contributor

@medikoo medikoo commented Aug 23, 2019

  1. Ensure that Rest API resolution error is reported as user error (via ServerlessError), so no stack trace is shown by default.

  2. Improve formatting of multiline messages

Before:

  Serverless Error ---------------------------------------
 
  Rest API id could not be resolved.
This might be caused by a custom API Gateway configuration.

In given setup stage specific options such as `tracing`, `logs` and `tags` are not supported.

Please update your configuration (or open up an issue if you feel that there's a way to support your setup).

After:

  Serverless Error ---------------------------------------
 
  Rest API id could not be resolved.
  This might be caused by a custom API Gateway configuration.
  
  In given setup stage specific options such as `tracing`, `logs` and `tags` are not supported.
  
  Please update your configuration (or open up an issue if you feel that there's a way to support your setup).

@medikoo medikoo added this to the 1.51.0 milestone Aug 23, 2019
@medikoo medikoo self-assigned this Aug 23, 2019
@medikoo medikoo requested a review from dschep August 23, 2019 12:32
@medikoo medikoo merged commit 4d64b9d into master Aug 23, 2019
@medikoo medikoo deleted the improve-error-handling branch August 23, 2019 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants