Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 573056

Summary: nonfatal die -n does not output the error message (EAPI 6)
Product: Portage Development Reporter: Ulrich Müller <ulm>
Component: Core - Ebuild SupportAssignee: Portage team <dev-portage>
Severity: normal Keywords: InVCS
Priority: Normal    
Version: 2.2   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 573774    

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: