]> source.dussan.org Git - archiva.git/commitdiff
add a default 500 http error handling with jquery
authorOlivier Lamy <olamy@apache.org>
Mon, 10 Sep 2012 19:59:12 +0000 (19:59 +0000)
committerOlivier Lamy <olamy@apache.org>
Mon, 10 Sep 2012 19:59:12 +0000 (19:59 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1383092 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-web-common/src/main/resources/org/apache/archiva/i18n/default.properties
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/startup.js

index 7d8d27cf210e1cc786723432f98c2828c2405fda..a317d18266f3165d079006a022f7fb5378dd4e37 100644 (file)
@@ -38,6 +38,7 @@ directory=Directory
 save.all=Save all
 
 authz.karma.needed=You need to be authenticated for this action or have more privileges.
+error.500=An error has happened you must contact the administrator to check the logs.
 
 administration.repositories=Repositories Administration
 
index 79dc190bc7c7c1d7e6e242b941cce1b03507f783..ae2ce0582a51244a64673ba550fa90d6518fe063 100644 (file)
@@ -35,6 +35,12 @@ function() {
         removeMediumSpinnerImg("#main-content");
         clearUserMessages();
         displayErrorMessage($.i18n.prop('authz.karma.needed'));
+      },
+      500: function(){
+        removeSmallSpinnerImg();
+        removeMediumSpinnerImg("#main-content");
+        clearUserMessages();
+        displayErrorMessage($.i18n.prop('error.500'));
       }
     }
   });