Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 573056 - nonfatal die -n does not output the error message (EAPI 6)
Summary: nonfatal die -n does not output the error message (EAPI 6)
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Ebuild Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
Keywords: InVCS
Depends on:
Blocks: portage-2.3.0
  Show dependency tree
Reported: 2016-01-26 21:41 UTC by Ulrich Müller
Modified: 2016-03-14 03:46 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Müller gentoo-dev 2016-01-26 21:41:33 UTC
nonfatal die -n "foo" simply returns with status 1, without any output.

PMS is quite explicit that it should display the error message even in this case:
"If called under the nonfatal command (as per section and with -n as its first parameter, displays a failure message provided in its following argument and then returns a non-zero exit status."
Comment 1 Alexander Berntsen (RETIRED) gentoo-dev 2016-01-28 12:12:42 UTC
This is now in git, courtesy of Ulrich:
Comment 2 Zac Medico gentoo-dev 2016-03-14 03:46:35 UTC
Fixed in 2.2.28.

New commit hash: