mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Update package name guess to account for no slash in front of path
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user