vasille
Version:
The same framework which is designed to build bulletproof frontends (core library).
17 lines (16 loc) • 558 B
JavaScript
const reportIt = "Report it here: https://gitlab.com/vasille-js/vasille-js/-/issues";
export function notOverwritten() {
console.error("Vasille-SFP: Internal error", "Must be overwritten", reportIt);
return "not-overwritten";
}
export function internalError(msg) {
console.error("Vasille-SFP: Internal error", msg, reportIt);
return "internal-error";
}
export function userError(msg, err) {
console.error("Vasille-SFP: User error", msg);
return err;
}
export function wrongBinding(msg) {
return userError(msg, "wrong-binding");
}