refs #6172 Change #1735
|
@ -120,7 +120,7 @@ function $exceptionHandler(vnApp, $window, $state, $injector) {
|
|||
messageT = 'Invalid login';
|
||||
break;
|
||||
case 403:
|
||||
messageT = exception.data.error.message || 'Access denied';
|
||||
messageT = exception.data?.error?.message || 'Access denied';
|
||||
|
||||
break;
|
||||
case 502:
|
||||
messageT = 'It seems that the server has fall down';
|
||||
|
|
Loading…
Reference in New Issue
Millor ficar
exception.data?.error?.message
, pot donarse el cas de que data o error no estiguen definits i donaria error de codi.