Fix the error message
This commit is contained in:
parent
a6d59a2ba0
commit
ae9c7f8cac
|
@ -221,10 +221,9 @@ DataSource._resolveConnector = function (name, loader) {
|
||||||
var connector = tryModules(names, loader);
|
var connector = tryModules(names, loader);
|
||||||
var error = null;
|
var error = null;
|
||||||
if (!connector) {
|
if (!connector) {
|
||||||
error = '\nWARNING: LoopBack connector "' + name
|
error = util.format('\nWARNING: LoopBack connector "%s" is not installed ' +
|
||||||
+ '" is not installed at any of the locations ' + names
|
'as any of the following modules:\n\n %s\n\nTo fix, run:\n\n npm install %s\n',
|
||||||
+ '. To fix, run:\n\n npm install '
|
name, names.join('\n'), names[names.length -1]);
|
||||||
+ name + '\n';
|
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
connector: connector,
|
connector: connector,
|
||||||
|
|
Loading…
Reference in New Issue