Skip to content

Commit

Permalink
Adds an error message for an outright failure on an ajax modal.
Browse files Browse the repository at this point in the history
Fixes bug 971965.

Change-Id: I5d4e015701b922cfbcec26c13b18d7a0b8919f99
  • Loading branch information
gabrielhurley committed Apr 2, 2012
1 parent 47f4459 commit bf6f9a2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions horizon/static/horizon/js/modals.js
Expand Up @@ -124,6 +124,10 @@ horizon.addInitFunction(function() {
location.reload(true);
}
}
else {
// Generic error handler. Really generic.
horizon.alert("error", "An error occurred. Please try again.");
}
},
success: horizon.modals.success
});
Expand Down

0 comments on commit bf6f9a2

Please sign in to comment.