mirror of
https://github.com/less/less.js.git
synced 2026-02-10 06:55:09 -05:00
Warn when the environment is asked for a file manager with no filname or directory
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
var logger = require("../logger");
|
||||
var environment = function(externalEnvironment, fileManagers) {
|
||||
this.fileManagers = fileManagers || [];
|
||||
externalEnvironment = externalEnvironment || {};
|
||||
@@ -18,6 +19,14 @@ var environment = function(externalEnvironment, fileManagers) {
|
||||
};
|
||||
|
||||
environment.prototype.getFileManager = function (filename, currentDirectory, options, environment, isSync) {
|
||||
|
||||
if (!filename) {
|
||||
logger.warn("getFileManager called with no filename.. Please report this issue. continuing.");
|
||||
}
|
||||
if (currentDirectory == null) {
|
||||
logger.warn("getFileManager called with null directory.. Please report this issue. continuing.");
|
||||
}
|
||||
|
||||
var fileManagers = this.fileManagers;
|
||||
if (options.pluginManager) {
|
||||
fileManagers = [].concat(fileManagers).concat(options.pluginManager.getFileManagers());
|
||||
|
||||
Reference in New Issue
Block a user