src/extensions/default/AutoUpdate/main.js
function showErrorMessage(message) {
        var analyticsDescriptionMessage = "";

        switch (message) {
        case _nodeErrorMessages.UPDATEDIR_READ_FAILED:
            analyticsDescriptionMessage = "Update directory could not be read.";
            break;
        case _nodeErrorMessages.UPDATEDIR_CLEAN_FAILED:
            analyticsDescriptionMessage = "Update directory could not be cleaned.";
            break;
        }
        console.log("AutoUpdate : Clean-up failed! Reason : " + analyticsDescriptionMessage + ".\n");
        HealthLogger.sendAnalyticsData(
                autoUpdateEventNames.AUTOUPDATE_CLEANUP_FAILED,
                "autoUpdate",
                "cleanUp",
                "fail",
                analyticsDescriptionMessage
        );
    }
function showErrorMessage(message) {
        var analyticsDescriptionMessage = "";

        switch (message) {
        case _nodeErrorMessages.UPDATEDIR_READ_FAILED:
            analyticsDescriptionMessage = "Update directory could not be read.";
            break;
        case _nodeErrorMessages.UPDATEDIR_CLEAN_FAILED:
            analyticsDescriptionMessage = "Update directory could not be cleaned.";
            break;
        }
        console.log("AutoUpdate : Clean-up failed! Reason : " + analyticsDescriptionMessage + ".\n");
        HealthLogger.sendAnalyticsData(
                autoUpdateEventNames.AUTOUPDATE_CLEANUP_FAILED,
                "autoUpdate",
                "cleanUp",
                "fail",
                analyticsDescriptionMessage
        );
    }
function showErrorMessage ( message ) { var analyticsDescriptionMessage = "" ; switch ( message ) { case _nodeErrorMessages . UPDATEDIR_READ_FAILED : analyticsDescriptionMessage = "Update directory could not be read." ; break ; case _nodeErrorMessages . UPDATEDIR_CLEAN_FAILED : analyticsDescriptionMessage = "Update directory could not be cleaned." ; break ; } console . log ( "AutoUpdate : Clean-up failed! Reason : " + analyticsDescriptionMessage + ".\n" ) ; HealthLogger . sendAnalyticsData ( autoUpdateEventNames . AUTOUPDATE_CLEANUP_FAILED , "autoUpdate" , "cleanUp" , "fail" , analyticsDescriptionMessage ) ; }
Handles the error messages from Node, in a popup displayed to the user.
@param {string} message - error string
Handles the error messages from Node in a popup displayed to the user .