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