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

Commit

Permalink
fail more gracefully for failed http.gets
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Levett committed Mar 10, 2016
1 parent 1e8e216 commit 94e86d7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion uw-frame-components/portal/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ define([
defaultThemeGo();
}
loadingCompleteSequence();
}, function(reason){
console.error("We got a error back from groupURL, setting theme to default");
defaultThemeGo();
loadingCompleteSequence();
});
} else {
console.warn('theme was setup as group, but the groupURL was not provided, going default');
Expand Down Expand Up @@ -242,7 +246,8 @@ define([
}
},
function(reason){
console.warn('login erred unexpectely, portal down? ' + reason.status);
console.error('Login erred unexpectely, portal down? ' + reason.status);
themeLoading(); //still continue with theme loading so they don't get stuck on loading
});
} else {
themeLoading();
Expand Down

0 comments on commit 94e86d7

Please sign in to comment.