Returns default error message

This commit is contained in:
Aaron Louie 2019-11-13 15:46:04 -05:00
parent e84cedf1c8
commit ebfd594231
1 changed files with 1 additions and 4 deletions

View File

@ -92,10 +92,7 @@ export class ApiService {
}
private _handleError(error: ApiError) {
let message = 'Could not complete your request; please try again later.';
message = error.message;
// return an observable with a user-facing error message
return throwError(message);
return throwError(error.message || 'Could not complete your request; please try again later.');
}
private _endpointUrl(endpointName: string): string {