Skip to content

Commit

Permalink
Merge pull request #1 from aVolpe/patch-1
Browse files Browse the repository at this point in the history
Fix error when exception doesn't have error field
  • Loading branch information
vigneshsithirai authored Jun 22, 2019
2 parents 61fcc1f + 600fb50 commit b7a90cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/interceptor/httpconfig.interceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class HttpConfigInterceptor implements HttpInterceptor {
catchError((error: HttpErrorResponse) => {
let data = {};
data = {
reason: error && error.error.reason ? error.error.reason : '',
reason: error && error.error && error.error.reason ? error.error.reason : '',
status: error.status
};
this.errorDialogService.openDialog(data);
Expand Down

0 comments on commit b7a90cf

Please sign in to comment.