Skip to content
Merged
2 changes: 1 addition & 1 deletion admin/src/core/interceptors/http-error.interceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const errorInterceptor: HttpInterceptorFn = (request, next) => {
const error = err?.error?.message || err.statusText;
const statusCode = err?.status;
if (statusCode == 400) { // Bad Request
modalSvc.openErrorDialog(`The request was not valid: ${error} <br/>Please fix the issue and try again.`, 'Bad Request');
modalSvc.openErrorDialog(`The request was not valid: ${error}. <br/><br/>Please fix the issue and try again.`, 'Bad Request');
} else if (statusCode == 403) { // Forbidden
modalSvc.openErrorDialog(`You were not authorized to perform the request. Please try again. <br/>If this issue persists, try logging out and back in. If this still persists, please contact the service desk.`, 'Forbidden');
} else if (statusCode == 422) {
Expand Down
2 changes: 0 additions & 2 deletions admin/src/core/services/modal.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ export class ModalService {
data: {
message: message || 'There was an error with the request, please try again.',
title: title,
// Increase size due to possibility of larger error messages.
width: '500px',
height: '300px',
buttons: {confirm: {text: 'OK'}}
}
});
Expand Down
Loading
Loading