there is apparently no file with the name 500.jade in your view folder. i 
assume your code does something like res.render(500) . either you create 
this file to provide a custom error page or you use res.send(500, 'Error 
string') if you just want to indicate a server error.

Am Donnerstag, 20. Februar 2014 10:50:37 UTC+1 schrieb Anurag Prasad:
>
> I am getting the following error and I am not able to figure out what 
> exactly is the problem. Please help me out with this:
>
> Error: Failed to lookup view "500" in views directory 
> "/Users/anurag_prasad/Desktop/node-express-mongoose-demo-master/config/app/views"
>  
> at Function.app.render 
> (/Users/anurag_prasad/Desktop/node-express-mongoose-demo-master/node_modules/express/lib/application.js:493:17)
>  
> at ServerResponse.res.render [as _render] 
> (/Users/anurag_prasad/Desktop/node-express-mongoose-demo-master/node_modules/express/lib/response.js:798:7)
>  
> at ServerResponse.res.render 
> (/Users/anurag_prasad/Desktop/node-express-mongoose-demo-master/node_modules/view-helpers/index.js:61:13)
>  
> at Object.handle 
> (/Users/anurag_prasad/Desktop/node-express-mongoose-demo-master/config/express.js:116:23)
>  
> at IncomingMessage.next 
> (/Users/anurag_prasad/Desktop/node-express-mongoose-demo-master/node_modules/express/node_modules/connect/lib/proto.js:188:17)
>  
> at fn 
> (/Users/anurag_prasad/Desktop/node-express-mongoose-demo-master/node_modules/express/lib/response.js:793:25)
>  
> at Function.app.render 
> (/Users/anurag_prasad/Desktop/node-express-mongoose-demo-master/node_modules/express/lib/application.js:495:14)
>  
> at ServerResponse.res.render [as _render] 
> (/Users/anurag_prasad/Desktop/node-express-mongoose-demo-master/node_modules/express/lib/response.js:798:7)
>  
> at ServerResponse.res.render 
> (/Users/anurag_prasad/Desktop/node-express-mongoose-demo-master/node_modules/view-helpers/index.js:61:13)
>  
> at Promise.<anonymous> 
> (/Users/anurag_prasad/Desktop/node-express-mongoose-demo-master/app/controllers/articles.js:40:11)
>
> -- 
> Anurag Prasad
> Birla Institute of Technology & Science, Pilani  
> Pilani Campus 
> Pilani, India. 333 031 
> Mobile: +91 - 9001250705 
> E.mail: [email protected] <javascript:>
> www.bits-pilani.ac.in
>  

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to