Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 352572 | Differences between
and this patch

Collapse All | Expand All

(-)js/org/eclipse/rwt/ErrorHandler.js (-3 / +17 lines)
Lines 59-67 Link Here
59
    },
59
    },
60
60
61
    processJavaScriptError : function( error ) {
61
    processJavaScriptError : function( error ) {
62
      var content = "<p>Javascript error occurred:</p><pre>"  + error + "</pre>";
62
      if( qx.core.Variant.isSet( "qx.debug", "on" ) ) {
63
      org.eclipse.rwt.ErrorHandler.showError( content );
63
        var content = "<p>Javascript error occurred:</p><pre>"  + error + "</pre>";
64
      throw error;
64
        org.eclipse.rwt.ErrorHandler.showError( content );
65
        throw error;
66
      } else {
67
        if( console ) {
68
          try {
69
            if( console.error ) {
70
              console.error( error );
71
            } else if( console.log ) {
72
              console.log( error );
73
            }
74
          } catch( ex ) {
75
            // ignore
76
          }
77
        }
78
      }
65
    },
79
    },
66
80
67
    _createOverlay : function() {
81
    _createOverlay : function() {

Return to bug 352572