[oe-commits] [bitbake] 03/07: fetch2/npm: add missing URL argument to ParameterError

git at git.openembedded.org git at git.openembedded.org
Wed Mar 9 22:46:15 UTC 2016


rpurdie pushed a commit to branch master
in repository bitbake.

commit 2fe1826d3077eeda6cde433d3a1e6620f74e08dd
Author: Paul Eggleton <paul.eggleton at linux.intel.com>
AuthorDate: Wed Mar 9 17:22:14 2016 +1300

    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 at linux.intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/fetch2/npm.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/bb/fetch2/npm.py b/lib/bb/fetch2/npm.py
index 3ff11e9..d44454c 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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list