refs #6172 Change #1735

Merged
guillermo merged 7 commits from 6172-errorMsg into dev 2023-12-11 10:48:59 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 09ad31a92d - Show all commits

View File

@ -120,7 +120,7 @@ function $exceptionHandler(vnApp, $window, $state, $injector) {
messageT = 'Invalid login'; messageT = 'Invalid login';
break; break;
case 403: case 403:
messageT = exception.data.error.message || 'Access denied'; messageT = exception.data?.error?.message || 'Access denied';
Outdated
Review

Millor ficar exception.data?.error?.message, pot donarse el cas de que data o error no estiguen definits i donaria error de codi.

Millor ficar `exception.data?.error?.message`, pot donarse el cas de que data o error no estiguen definits i donaria error de codi.
break; break;
case 502: case 502:
messageT = 'It seems that the server has fall down'; messageT = 'It seems that the server has fall down';