Skip to content
Myr

added nicer error messages for failed view lookup. Closes #1065

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by TJ Holowaychuk · committed by TJ Holowaychuk · parent 082ba88 · Browse files · 2 files+16 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+16 added−1 removed

  • tests:+12 added−1 removed
  • other:+4 added−0 removed

2 files+16 added−1 removed

modified:lib/application.js+4 added
514 unmodified lines
515 , root: this.get('views') || process.cwd() + '/views'516 , engines: engines517 });518519 if (!view.path) {520 return fn(new Error('Failed to lookup view "' + name + '"'));521 }522523 // prime the cache524 if (opts.cache) cache[name] = view;525 }526
7 unmodified lines
modified:test/app.render.js+12 added-1 removed