From ae9c7f8cac44f81d6ba816d6ac2ba0ef7628bb80 Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Mon, 14 Jul 2014 08:56:33 -0700 Subject: [PATCH] Fix the error message --- lib/datasource.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/datasource.js b/lib/datasource.js index 6640768e..8b5d51ab 100644 --- a/lib/datasource.js +++ b/lib/datasource.js @@ -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,