Make gencredentails throw errors to stderr