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 error = null;
|
||||
if (!connector) {
|
||||
error = '\nWARNING: LoopBack connector "' + name
|
||||
+ '" is not installed at any of the locations ' + names
|
||||
+ '. To fix, run:\n\n npm install '
|
||||
+ name + '\n';
|
||||
error = util.format('\nWARNING: LoopBack connector "%s" is not installed ' +
|
||||
'as any of the following modules:\n\n %s\n\nTo fix, run:\n\n npm install %s\n',
|
||||
name, names.join('\n'), names[names.length -1]);
|
||||
}
|
||||
return {
|
||||
connector: connector,
|
||||
|
|
Loading…
Reference in New Issue