Improve error message logging on exit #592

Merged
merged 14 commits into from Jun 29, 2016

Conversation

Projects
None yet
5 participants
Contributor

tsimonq2 commented Jun 22, 2016

This should fix bug 1574190 due to a suggestion by @elopio. This reverts a one-line change made with the commit for cleanbuild.

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Contributor

tsimonq2 commented Jun 22, 2016

Needs more work, I'll hack on it more

tsimonq2 added some commits Jun 23, 2016

Contributor

tsimonq2 commented Jun 23, 2016

Hmm, the unit tests are failing, but I'm not entirely sure that it's because of tweaks I'm making. @elopio, thoughts on why this is failing?

snapcraft/main.py
-
- logger.error(textwrap.fill(str(e)))
- sys.exit(1)
+ sys.exit(e)
@elopio

elopio Jun 23, 2016

Member

This is a bad merge. I changed these lines after you made your branch.
The correct merged statements would be:
logger.error(str(e))
sys.exit(1)

@tsimonq2 tsimonq2 changed the title from [Trivial] Fix for bug 1574190 to Fix for bug 1574190 Jun 23, 2016

Can one of the admins verify this patch?

Can one of the admins verify this patch?

tsimonq2 added some commits Jun 28, 2016

Contributor

tsimonq2 commented Jun 28, 2016

Well, this looks like the tests have passed and the bug seems to be fixed.

@elopio can you confirm that this is ready?

Member

kyrofa commented Jun 28, 2016

Hey @tsimonq2 this turns into a changelog entry. Would you mind selecting a more informative PR title?

@tsimonq2 tsimonq2 changed the title from Fix for bug 1574190 to Removes error message truncation (bug 1574190) Jun 28, 2016

Contributor

tsimonq2 commented Jun 28, 2016

@kyrofa How does that look?

@sergiusens sergiusens changed the title from Removes error message truncation (bug 1574190) to Improve error message logging Jun 28, 2016

Collaborator

sergiusens commented Jun 28, 2016

@tsimonq2 I hope you don't mind my change

@sergiusens sergiusens changed the title from Improve error message logging to Improve error message logging on exit Jun 28, 2016

Contributor

tsimonq2 commented Jun 28, 2016

Totally fine @sergiusens

Collaborator

sergiusens commented Jun 28, 2016

👍

Member

elopio commented Jun 28, 2016

👍 Thanks!

@sergiusens sergiusens merged commit f861908 into snapcore:master Jun 29, 2016

4 checks passed

Examples tests Success
Details
autopkgtest Success
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
coverage/coveralls Coverage decreased (-0.0004%) to 96.239%
Details

@tsimonq2 tsimonq2 deleted the tsimonq2:bug1574190 branch Jul 10, 2016

kalikiana 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