src/LiveDevelopment/LiveDevelopment.js
function _onError(event, error, msgData) {
        var message;

        // Sometimes error.message is undefined
        if (!error.message) {
            console.warn("Expected a non-empty string in error.message, got this instead:", error.message);
            message = JSON.stringify(error);
        } else {
            message = error.message;
        }

        // Remove "Uncaught" from the beginning to avoid the inspector popping up
        if (message && message.substr(0, 8) === "Uncaught") {
            message = message.substr(9);
        }

        // Additional information, like exactly which parameter could not be processed.
        var data = error.data;
        if (Array.isArray(data)) {
            message += "\n" + data.join("\n");
        }

        // Show the message, but include the error object for further information (e.g. error code)
        console.error(message, error, msgData);
    }
function _onError(event, error, msgData) {
        var message;

        // Sometimes error.message is undefined
        if (!error.message) {
            console.warn("Expected a non-empty string in error.message, got this instead:", error.message);
            message = JSON.stringify(error);
        } else {
            message = error.message;
        }

        // Remove "Uncaught" from the beginning to avoid the inspector popping up
        if (message && message.substr(0, 8) === "Uncaught") {
            message = message.substr(9);
        }

        // Additional information, like exactly which parameter could not be processed.
        var data = error.data;
        if (Array.isArray(data)) {
            message += "\n" + data.join("\n");
        }

        // Show the message, but include the error object for further information (e.g. error code)
        console.error(message, error, msgData);
    }
function _onError ( event , error , msgData ) { var message ; // Sometimes error.message is undefined if ( ! error . message ) { console . warn ( "Expected a non-empty string in error.message, got this instead:" , error . message ) ; message = JSON . stringify ( error ) ; } else { message = error . message ; } // Remove "Uncaught" from the beginning to avoid the inspector popping up if ( message && message . substr ( 0 , 8 ) === "Uncaught" ) { message = message . substr ( 9 ) ; } // Additional information, like exactly which parameter could not be processed. var data = error . data ; if ( Array . isArray ( data ) ) { message += "\n" + data . join ( "\n" ) ; } // Show the message, but include the error object for further information (e.g. error code) console . error ( message , error , msgData ) ; }
Triggered by Inspector.error
Triggered by Inspector . error