src/server/index.js
/**
 * Verify error page configuration and cache custom error page
 *
 * @private
 */
Verify error page configuration and cache custom error page
@private
Verify error page configuration and cache custom error page @private
function __init_verifyErrorPage()
{
    __log_init(Core.LOG_LEVEL.INFO, "Verifying error page configuration");
    if(config.server.hasOwnProperty("error_page"))
    {
        if(!fs.existsSync(path.resolve(process.cwd(), config.server.error_page)))
        {
            config.server.error_page = path.resolve(process.cwd(), "default/error.html");
            Core.logger.log(Core.LOG_LEVEL.WARN, `Invalid error page configuration. Setting to default`);
        }
        else
           loadPage(path.resolve(process.cwd(), config.server.error_page), "ERROR");
    }
    else
        config.server.error_page = path.resolve(process.cwd(), "default/error.html");
}
function __init_verifyErrorPage ( ) { __log_init ( Core . LOG_LEVEL . INFO , "Verifying error page configuration" ) ; if ( config . server . hasOwnProperty ( "error_page" ) ) { if ( ! fs . existsSync ( path . resolve ( process . cwd ( ) , config . server . error_page ) ) ) { config . server . error_page = path . resolve ( process . cwd ( ) , "default/error.html" ) ; Core . logger . log ( Core . LOG_LEVEL . WARN , ` ` ) ; } else loadPage ( path . resolve ( process . cwd ( ) , config . server . error_page ) , "ERROR" ) ; } else config . server . error_page = path . resolve ( process . cwd ( ) , "default/error.html" ) ; }
Verify error page configuration and cache custom error page
 @private
Verify error page configuration and cache custom error page @private
// Verify error page configuration