All files / common/rage_modules rage_errors.mjs

0% Statements 0/18
0% Branches 0/1
0% Functions 0/1
0% Lines 0/18

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20                                       
export function error (i){
        // CODE: INCOMPLETE
        // UNIT: FALSE
        // DOCS: FALSE
    switch (i){
        case 403: logError("Forbidden"); return;
        case 404: logError("Not Found"); return;
        default: logError("Unknown error code: " + i.toString())
    }
}

function logError(str){
        // CODE: INCOMPLETE
        // UNIT: FALSE
        // DOCS: FALSE
        
    console.error(str)
}