-
Notifications
You must be signed in to change notification settings - Fork 12
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
editor: improve error message #414
Conversation
@@ -359,34 +359,26 @@ export class RecordService { | |||
* @return throwError | |||
*/ | |||
private _handleError(error: HttpErrorResponse): Observable<Error> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The return value is not an observable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
throwError
return an Observable of Error. This is right ;-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commit message title proposition: editor: improve error message
Rather than a generic error message, try to use the message returned by backend when an error is detected on the editor form. Co-authored-by: Renaud Michotte <renaud.michotte@gmail.com>
8de808e
to
4608041
Compare
Rather than a generic error message, try to use the message returned by
backend when an error is detected on the editor form.
Co-authored-by: Renaud Michotte renaud.michotte@gmail.com
How to test?
Code review check list