Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
A nicer error message for incorrect stage-packages #524
Conversation
kyrofa
reviewed
May 27, 2016
| self.ubuntu.get(self.code.stage_packages) | ||
| + except repo.PackageNotFoundError as e: | ||
| + raise RuntimeError("Cannot find {!r} defined as 'stage-packages' " | ||
| + "for {!r}".format(e.package_name, self.name)) |
kyrofa
May 27, 2016
Member
"Cannot find 'libfoo' defined as 'stage-packages' for 'bar'" doesn't read very well. What about "Error downloading stage packages for part 'bar': no such package 'libfoo'" ?
sergiusens
May 27, 2016
Collaborator
El 27/05/16 a las 11:57, Kyle Fazzari escribió:
In snapcraft/internal/pluginhandler.py
ubuntu-core#524 (comment):self.ubuntu.get(self.code.stage_packages)
except repo.PackageNotFoundError as e:raise RuntimeError("Cannot find {!r} defined as 'stage-packages' ""for {!r}".format(e.package_name, self.name))"Cannot find 'libfoo' defined as 'stage-packages' for 'bar'" doesn't
read very well. What about "Error downloading stage packages for part
'bar': no such package 'libfoo'" ?
sure
|
|
|
|
|
Beautiful! |
sergiusens
merged commit 0c05bd6
into
snapcore:master
May 27, 2016
added a commit
to josepht/snapcraft
that referenced
this pull request
May 31, 2016
sergiusens
deleted the
sergiusens:bugfix/1568131/error-message-for-stage-packages
branch
Aug 30, 2016
pushed a commit
to kalikiana/snapcraft
that referenced
this pull request
Apr 6, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sergiusens commentedMay 27, 2016
LP: #1568131