frontend/.pnpm-store/v3/files/61/8fef3a2489b1865e74306bd104b7485bf03dcb6662031e175212c2ea0ab2cf604dd02f0b4245a986abaa11610967c5420baa3d22e886b5aedd374441f5c76d

16 lines
459 B
Plaintext

import Exception from '../exception';
export default function(instance) {
instance.registerHelper('helperMissing', function(/* [args, ]options */) {
if (arguments.length === 1) {
// A missing field in a {{foo}} construct.
return undefined;
} else {
// Someone is actually trying to call something, blow up.
throw new Exception(
'Missing helper: "' + arguments[arguments.length - 1].name + '"'
);
}
});
}