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

Reword the message printed by REST LogError action #6556

Merged
merged 1 commit into from
Oct 13, 2020

Conversation

bajtos
Copy link
Member

@bajtos bajtos commented Oct 13, 2020

Change the message from "unhandled error" to "request failed".

The original message was often creating confusion for our users. It seemed like the error was not handled at all, when in fact it was caught by the configured error handler and converted into a proper HTTP error response.

See the discussion in loopbackio/strong-error-handler#54 and also loopbackio/strong-error-handler#91.

Checklist

  • DCO (Developer Certificate of Origin) signed in all commits
  • npm test passes on your machine
  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style guide
  • API Documentation in code was updated
  • Documentation in /docs/site was updated
  • Affected artifact templates in packages/cli were updated
  • Affected example projects in examples/* were updated

👉 Check out how to submit a PR 👈

Change the message from "unhandled error" to "request failed".

The original message was often creating confusion for our users.
It seemed like the error was not handled at all, when in fact it was
caught by the configured error handler and converted into a proper
HTTP error response.

Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>
@bajtos bajtos added developer-experience Issues affecting ease of use and overall experience of LB users feature REST Issues related to @loopback/rest package and REST transport in general labels Oct 13, 2020
@bajtos bajtos self-assigned this Oct 13, 2020
@bajtos bajtos changed the title feat(rest): reword the message printed by REST LogError action Reword the message printed by REST LogError action Oct 13, 2020
@bajtos bajtos merged commit 3fc2bc1 into master Oct 13, 2020
@bajtos bajtos deleted the feat/reword-rest-error-log branch October 13, 2020 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
developer-experience Issues affecting ease of use and overall experience of LB users feature REST Issues related to @loopback/rest package and REST transport in general
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants