summaryrefslogtreecommitdiffstats
path: root/lib/bb/fetch2/npm.py
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2016-03-09 17:22:14 +1300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-09 22:37:27 +0000
commit2fe1826d3077eeda6cde433d3a1e6620f74e08dd (patch)
tree1addd47298ae6b03c41befbb965c15a40df01777 /lib/bb/fetch2/npm.py
parent436d67fe7af89ecfbd11749a6ae1bc20e81f2cc8 (diff)
downloadbitbake-contrib-2fe1826d3077eeda6cde433d3a1e6620f74e08dd.tar.gz
fetch2/npm: add missing URL argument to ParameterError
Without this you get a rather odd traceback instead of the proper exception message. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/fetch2/npm.py')
-rw-r--r--lib/bb/fetch2/npm.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bb/fetch2/npm.py b/lib/bb/fetch2/npm.py
index 3ff11e9c2..d44454cb2 100644
--- a/lib/bb/fetch2/npm.py
+++ b/lib/bb/fetch2/npm.py
@@ -75,10 +75,10 @@ class Npm(FetchMethod):
# TODO: find a way to get an sha1/sha256 manifest of pkg & all deps
ud.pkgname = ud.parm.get("name", None)
if not ud.pkgname:
- raise ParameterError("NPM fetcher requires a name parameter")
+ raise ParameterError("NPM fetcher requires a name parameter", ud.url)
ud.version = ud.parm.get("version", None)
if not ud.version:
- raise ParameterError("NPM fetcher requires a version parameter")
+ raise ParameterError("NPM fetcher requires a version parameter", ud.url)
ud.bbnpmmanifest = "%s-%s.deps.json" % (ud.pkgname, ud.version)
ud.registry = "http://%s" % ud.basename
prefixdir = "npm/%s" % ud.pkgname