Changeset 9514

Show
Ignore:
Timestamp:
05/06/08 14:08:39 (1 week ago)
Author:
erickson
Message:

Merged revisions 9513 via svnmerge from
svn://svn.open-ils.org/ILS/trunk

........

r9513 | erickson | 2008-05-06 14:08:20 -0400 (Tue, 06 May 2008) | 1 line


added some more explicit error handling calls for easier debugging

........

Location:
branches/acq-experiment
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/acq-experiment

    • Property svnmerge-integrated changed from /trunk:1-9511 to /trunk:1-9513
  • branches/acq-experiment/Open-ILS/web/js/dojo/fieldmapper/Fieldmapper.js

    r9512 r9514  
    100100        if (!args.async && !args.timeout) args.timeout = 10; 
    101101 
     102        if(!args.onmethoderror) { 
     103            args.onmethoderror = function(r, stat, stat_text) { 
     104                throw new Error('Method error: ' + r.stat + ' : ' + stat_text); 
     105            } 
     106        } 
     107 
     108        if(!args.ontransporterror) { 
     109            args.ontransporterror = function(xreq) { 
     110                throw new Error('Transport error status=' + xreq.status); 
     111            } 
     112        } 
     113 
    102114                if (!args.onerror) { 
    103115                        args.onerror = function (r) { 
    104                                 throw 'Error encountered! ' + r; 
     116                                throw new Error('Request error encountered! ' + r); 
    105117                        } 
    106118                }