Skip to content
This repository was archived by the owner on May 4, 2022. It is now read-only.

Commit 07785a5

Browse files
authored
Merge pull request #934 from uPortal-Project/disambiguate-layout-call
disambiguate the 3 "layout call" redirects
2 parents 3a7c270 + 957a7bb commit 07785a5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

web/src/main/webapp/my-app/layout/services.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ define(['angular', 'jquery'], function(angular, $) {
119119
};
120120

121121
errorFn = function(reason) {
122-
miscService.redirectUser(reason.status, 'layout call');
122+
miscService.redirectUser(reason.status,
123+
'layoutService request to ' + SERVICE_LOC.newLayout +
124+
' in new getLayout');
123125
};
124126
return $http.get(
125127
SERVICE_LOC.newLayout)
@@ -197,7 +199,7 @@ define(['angular', 'jquery'], function(angular, $) {
197199
};
198200

199201
errorFn = function(reason) {
200-
miscService.redirectUser(reason.status, 'layout call');
202+
miscService.redirectUser(reason.status, 'layoutService getLayout call (old implementation)');
201203
};
202204

203205
// no caching... request from the server
@@ -285,7 +287,7 @@ define(['angular', 'jquery'], function(angular, $) {
285287
};
286288

287289
var errorFn = function(reason) {
288-
miscService.redirectUser(reason.status, 'layout call');
290+
miscService.redirectUser(reason.status, 'layoutService getUncachedLayout');
289291
};
290292

291293
// no caching... request from the server

0 commit comments

Comments
 (0)