| .. | .. |
|---|
| 105 | 105 | toaster.pop('success', Catalogs.getName(), $L.get("Element deleted successfully")); |
|---|
| 106 | 106 | },function(error) { |
|---|
| 107 | 107 | console.log(error); |
|---|
| 108 | | - toaster.pop('error', Catalogs.getName(), $L.get("Error deleting element, reason: {0}. Details: {1}", $L.get(HTTP_ERRORS[error.status]), error.headers('X-SECURIS-ERROR')), 10000); |
|---|
| 108 | + toaster.pop('error', Catalogs.getName(), $L.get("Error deleting element, reason: {0}. Details: {1}", $L.get(HTTP_ERRORS[error.status]), error.headers('X-SECURIS-ERROR-MSG')), 10000); |
|---|
| 109 | 109 | }); |
|---|
| 110 | 110 | } |
|---|
| 111 | 111 | }); |
|---|
| .. | .. |
|---|
| 180 | 180 | toaster.pop('success', Catalogs.getName(), $L.get("Element saved successfully")); |
|---|
| 181 | 181 | }, function(error) { |
|---|
| 182 | 182 | console.log(error); |
|---|
| 183 | | - toaster.pop('error', Catalogs.getName(), $L.get("Error saving element, reason: {0}. Details: {1}", $L.get(HTTP_ERRORS[error.status]), error.headers('X-SECURIS-ERROR')), 10000); |
|---|
| 183 | + toaster.pop('error', Catalogs.getName(), $L.get("Error saving element, reason: {0}. Details: {1}", $L.get(HTTP_ERRORS[error.status]), error.headers('X-SECURIS-ERROR-MSG')), 10000); |
|---|
| 184 | 184 | }); |
|---|
| 185 | 185 | } |
|---|
| 186 | 186 | } |
|---|