Hi,
On 07/01/2013 09:31 AM, Radek Novacek wrote:
On Mon 01 of Jul 2013 9:17:18 Jan Synacek wrote:
> Hello,
>
> currently, exceptions in shell are silently ignored when risen, unless
> 'use_exception(True)' is explicitly called. I strongly suggest we change the
> default behavior to use the exceptions by default and, if needed, turn them
> off by 'use_exception(False)'. This will save a lot of gray hair in the
> future...
I think that exceptions should be hidden by default, but there *must* be some
error written to the shell when something goes wrong.
Exceptions are very useful for us, developers, but can be confusing for end-
users - it could be hard to determine, if the exception is bug in
shell/providers or just wrong usage (like wrong username/password).
I suggest following behavior for lmishell:
* Don't raise exceptions in interactive mode by default (but it could be
changed by use_exceptions(True) or some command line option
* Print the error message when exceptions are turned off
Agree.
* Raise exception in lmishell scripts
Is this suggestion agreeable?
Radek Novacek
_______________________________________________
openlmi-devel mailing list
openlmi-devel(a)lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/openlmi-devel
--
Peter Hatina
ENG Server Experience, System Management
Red Hat Czech, Brno