Update package name guess to account for no slash in front of path

This commit is contained in:
Emily Stark
2013-07-12 16:00:53 -07:00
parent 3311517ecf
commit d2eb68c60b

View File

@@ -98,7 +98,7 @@ Fiber(function () {
// Try to guess the package name so we can print a nice
// error message
var filePathParts = fileInfo.path.split(path.sep);
var packageName = filePathParts[2].replace(/\.js$/, '');
var packageName = filePathParts[1].replace(/\.js$/, '');
// XXX better message
throw new Error(