-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Petteri Räty wrote:
> Jason Stubbs wrote:
> 
>>>Not sure if hiding the exception away (traceback) is a good thing;
>>>wrapping it with purdy output, sure, but swallowing it?
>>
>>
>>If it's failing to import, there's something pretty wrong with it. I'm sure 
>>that module authors will know enough to remove the except block. Is there 
>>really anything useful gained from dumping the traceback?
>>
>>--
>>Jason Stubbs
> 
> 
> Well emerge does have a --debug flag under which to dump everything you
> want. Tracebacks might also be included under the --verbose flag. IMHO
> tracebacks should in most cases be replaced by user understandable
> errors messages in such a way that the tracebacks are still easily
> available if wanted.
> 
> Regards,
> Petteri

I would prefer both tbh, which sucks because it's more work :P  You have
to generally catch the exception, print an error message, and then raise
it again ( or just print the tb, your choice ).  That way the user knows
that we probably guessed that exception would be thrown at one point,
and we can provide actual instructions while still having a traceback to
tell us what the hell is going on.

Woe is me when they report the bug and the code is just like

writemsg("!!! Error portage sucks!")
sys.exit()

....Great, that message probably isn't unique and now their problem
could be in 5 different places in the code, and I get to guess where :/

sys.exit--

- -Alec Warner (antarus)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iQIVAwUBQ6wQzmzglR5RwbyYAQI8BQ/+MGK4GjFsNqBJp9cnBgDIUxqbtU/RNuCH
4/o449JXWpwc0ndqf93SG/EeyB4FxhiSFcLlmvedimKF+8eLpDzgulVlO44Dl1UK
QpssiQmjJstkecGrO+IoqEZr47PR4EIMXxjE5FqFQBfsAApYwcGf6Ksyt5YVbWl3
bRXoi5FKMKYKKS/RXA7FO/4PItF3DapK7GtF31kjP4RkSRbH8h2gWtbmcC2zIVVp
Xyd+zetEuPxJwgJ0fqym7okWjLdx5tc7d7nfYgeKluXhzpEcix2MRY6OEzvomJ3k
VuUBV9m279JqFzPcEUFeUx1/a976HF0o5dGreI0qI+A20iDs7yFYxB8ZXvNg5O2r
pcOX13okBU/C17ZoCVvmeDwJI1NlSdR+pUHfPaGN54V1BgTaNNS+T4ZftXpLOSja
A1aaoipqNq215bsKuIWOAJZvnU9BLAc3KjjDEqcIuEoddSlEaS1v6grp1aE0NdSV
V+iyhAU/Y58gwiCQu86jIwozpGkVEQ42/agPbVYpuPE3+F9bICN9rrmscN9iQv60
M9uapRED7VDN9UtWxLqQRQTU0W1RjPeoscda1cHKuwTNCDlEhd6aUwNNrSHgVl1B
6wl+1Mx/Okr+Zcg/8BfEs7EDa07eB8W/V1++v8vDngNG8DC55ihQpq0+KpVdSsuu
eT0KTxWT7pQ=
=KUP3
-----END PGP SIGNATURE-----
-- 
[email protected] mailing list

Reply via email to