default error handler typo
[Evergreen.git] / Open-ILS / web / js / dojo / fieldmapper / Fieldmapper.js
index 1eba165..afb6722 100644 (file)
@@ -99,7 +99,7 @@ if(!dojo._hasResource["fieldmapper.Fieldmapper"]){
         if (!args.async && !args.timeout) args.timeout = 10;
 
                if (!args.onerror) {
-                       args.error = function (r) {
+                       args.onerror = function (r) {
                                throw 'Error encountered! ' + r;
                        }
                }