diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2016-03-09 17:22:14 +1300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-03-09 22:45:16 +0000 |
commit | c50bdb300bb2d6a2bb406688bd9e86d80f2a8873 (patch) | |
tree | 797f10bb380166415d59202936bc8aaeed7cb1b1 | |
parent | fbf27c4c5dae4837f399901c6afb4ffb25098e46 (diff) | |
download | poky-c50bdb300bb2d6a2bb406688bd9e86d80f2a8873.tar.gz |
bitbake: fetch2/npm: add missing URL argument to ParameterError
Without this you get a rather odd traceback instead of the proper
exception message.
(Bitbake rev: 2fe1826d3077eeda6cde433d3a1e6620f74e08dd)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | bitbake/lib/bb/fetch2/npm.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/npm.py b/bitbake/lib/bb/fetch2/npm.py index 3ff11e9c27..d44454cb2c 100644 --- a/bitbake/lib/bb/fetch2/npm.py +++ b/bitbake/lib/bb/fetch2/npm.py | |||
@@ -75,10 +75,10 @@ class Npm(FetchMethod): | |||
75 | # TODO: find a way to get an sha1/sha256 manifest of pkg & all deps | 75 | # TODO: find a way to get an sha1/sha256 manifest of pkg & all deps |
76 | ud.pkgname = ud.parm.get("name", None) | 76 | ud.pkgname = ud.parm.get("name", None) |
77 | if not ud.pkgname: | 77 | if not ud.pkgname: |
78 | raise ParameterError("NPM fetcher requires a name parameter") | 78 | raise ParameterError("NPM fetcher requires a name parameter", ud.url) |
79 | ud.version = ud.parm.get("version", None) | 79 | ud.version = ud.parm.get("version", None) |
80 | if not ud.version: | 80 | if not ud.version: |
81 | raise ParameterError("NPM fetcher requires a version parameter") | 81 | raise ParameterError("NPM fetcher requires a version parameter", ud.url) |
82 | ud.bbnpmmanifest = "%s-%s.deps.json" % (ud.pkgname, ud.version) | 82 | ud.bbnpmmanifest = "%s-%s.deps.json" % (ud.pkgname, ud.version) |
83 | ud.registry = "http://%s" % ud.basename | 83 | ud.registry = "http://%s" % ud.basename |
84 | prefixdir = "npm/%s" % ud.pkgname | 84 | prefixdir = "npm/%s" % ud.pkgname |