wesgarland / gpsee

General Purpose Spidermonkey Embedding Ecosystem
https://github.com/wesgarland/gpsee
4 stars 0 forks source link

require() "not found" exceptions should warn on extra ".js" #81

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Can you see the bug here?

Uncaught exception in /opt/PMItic/libexec/tic/db.js:35: gpsee.loadModule.disk: 
Error loading relative module './db_schema.js': module not found in 
'/opt/PMItic/libexec/tic'

It should be immediately obvious that the problem is a call to 
require('./db_schema.js') rather than the correct call, require('./db_schema')

Let's update the error handling in this situation for 0.2!

Original issue reported on code.google.com by donny.vi...@gmail.com on 11 Oct 2010 at 2:35

GoogleCodeExporter commented 9 years ago

Original comment by wes@page.ca on 5 Sep 2012 at 3:24