Skip to content
This repository has been archived by the owner on Jan 25, 2020. It is now read-only.

Incorrect error message with view index #49

Open
kurdin opened this issue Mar 22, 2016 · 0 comments
Open

Incorrect error message with view index #49

kurdin opened this issue Mar 22, 2016 · 0 comments

Comments

@kurdin
Copy link

kurdin commented Mar 22, 2016

if I render with view index and file index.dust does not exist in templates, this line cause wrong error:

search.push([name, path.join(path.basename(name), 'index' + ext)]);

[ERROR] { [Error: ENOTDIR: not a directory, stat 'www-server/public/templates/index.dust/index.dust']
  errno: -20,
  code: 'ENOTDIR',
  syscall: 'stat',
  path: 'www-server/public/templates/index.dust/index.dust' }
Tue, 22 Mar 2016 15:46:22 GMT uncaughtException 
Error
    at www-server/node_modules/makara/node_modules/engine-munger/index.js:135:17
    at www-server/node_modules/makara/node_modules/engine-munger/index.js:156:24
    at www-server/node_modules/makara/node_modules/engine-munger/index.js:96:21
    at www-server/node_modules/makara/node_modules/engine-munger/index.js:195:13
    at FSReqWrap.oncomplete (fs.js:82:15)

if view is test then the Error is correct:

[ERROR] [VError: Failed to lookup view "layouts/default/hello.dust" in directory "www-server/public/templates"]
@kurdin kurdin changed the title Incorrect error message with index as view Incorrect error message with view index Mar 22, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant