mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Less: Pass error in callback, don't throw
This commit is contained in:
@@ -124,7 +124,8 @@ class MeteorImportLessFileManager extends less.AbstractFileManager {
|
|||||||
if (! packageMatch) {
|
if (! packageMatch) {
|
||||||
// shouldn't happen. all filenames less ever sees should involve this {}
|
// shouldn't happen. all filenames less ever sees should involve this {}
|
||||||
// thing!
|
// thing!
|
||||||
throw new Error('file without Meteor context? ' + currentDirectory);
|
cb(new Error('file without Meteor context? ' + currentDirectory));
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
const currentPackagePrefix = packageMatch[1];
|
const currentPackagePrefix = packageMatch[1];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user