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

Incorrect error message with view index #49

@kurdin

Description

@kurdin

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"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions