Skip to content
Myr

add err.view property for view errors. Closes #1226

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 5426eb0 · Browse files · 1 file+3 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

1 file+3 added−1 removed

  • other:+3 added−1 removed

1 file+3 added−1 removed

modified:lib/application.js+3 added-1 removed
488 unmodified lines
489 , engines: engines490 });491492 if (!view.path) {493 return fn(new Error('Failed to lookup view "' + name + '"'));493 var err = new Error('Failed to lookup view "' + name + '"');494 err.view = view;495 return fn(err);496 }497498 // prime the cache499 if (opts.cache) cache[name] = view;
35 unmodified lines