balderdashy/sails · error
Usage: If provided, `dontUnescapeOnClient` should be either
Error message
Usage: If provided, `dontUnescapeOnClient` should be either `true` or `false`
What it means
Error "Usage: If provided, `dontUnescapeOnClient` should be either `true` or `false`" thrown in balderdashy/sails.
Source
Thrown at lib/hooks/views/html-scriptify.js:118
if (e.code === 'E_INVALID') {
throw new Error('Usage: If provided, `namespace` should be a string');
} else { throw e; }
}
}
else {
options.namespace = 'SAILS_LOCALS';
}//>-
// Verify `dontUnescapeOnClient` flag, if provided (or use default)
//
// > If special backwards-compatible support for older browsers is needed, or any
// > other customizations to the client-side escaping code are necessary, then
// > the built-in client-side escaping can be disabled using `dontUnescapeOnClient: true`.
if (!_.isUndefined(options.dontUnescapeOnClient)) {
try {
options.dontUnescapeOnClient = rttc.validate('boolean', options.dontUnescapeOnClient);
} catch (e) {
if (e.code === 'E_INVALID') { throw new Error('Usage: If provided, `dontUnescapeOnClient` should be either `true` or `false`'); }
else { throw e; }
}
}
else {
options.dontUnescapeOnClient = false;
}//>-
// console.log('options.data',options.data);
// console.log('_.keys(options.data)',_.keys(options.data));
// ██████╗ ██╗ ██╗██╗██╗ ██████╗ ██╗ ██╗████████╗███╗ ███╗██╗
// ██╔══██╗██║ ██║██║██║ ██╔══██╗ ██║ ██║╚══██╔══╝████╗ ████║██║
// ██████╔╝██║ ██║██║██║ ██║ ██║ ███████║ ██║ ██╔████╔██║██║
// ██╔══██╗██║ ██║██║██║ ██║ ██║ ██╔══██║ ██║ ██║╚██╔╝██║██║
// ██████╔╝╚██████╔╝██║███████╗██████╔╝ ██║ ██║ ██║ ██║ ╚═╝ ██║███████╗
// ╚═════╝ ╚═════╝ ╚═╝╚══════╝╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝╚══════╝
//View on GitHub (pinned to 7b76422cc2)
When it happens
Trigger: Thrown at lib/hooks/views/html-scriptify.js:118 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of balderdashy/sails@7b76422cc2 (2026-09-01).
Data as JSON: /api/errors/d7b673c208635eac.
Report an issue: GitHub.