summaryrefslogtreecommitdiffstats
path: root/install/ui/entity.js
diff options
context:
space:
mode:
Diffstat (limited to 'install/ui/entity.js')
-rw-r--r--install/ui/entity.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/install/ui/entity.js b/install/ui/entity.js
index ce028a2eb..bba51f79f 100644
--- a/install/ui/entity.js
+++ b/install/ui/entity.js
@@ -138,8 +138,7 @@ IPA.facet = function (spec) {
that.entity.redirect_facet);
};
- var redirect_errors =
- ["IPA Error 4001"];
+ var redirect_errors = [4001];
that.on_error = function(xhr, text_status, error_thrown) {
@@ -147,7 +146,7 @@ IPA.facet = function (spec) {
as there is nothing any other facet can do either. */
if (that.entity.redirect_facet) {
for (var i=0; i<redirect_errors.length; i++) {
- if (error_thrown.name === redirect_errors[i]) {
+ if (error_thrown.code === redirect_errors[i]) {
that.redirect();
return;
}