[prev in list] [next in list] [prev in thread] [next in thread]
List: openlmi-devel
Subject: Re: use_exception(True) by default in lmishell
From: Peter Hatina <phatina () redhat ! com>
Date: 2013-07-12 11:03:16
Message-ID: 51DFE274.50603 () redhat ! com
[Download RAW message or body]
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@lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/openlmi-devel
>
--
Peter Hatina
ENG Server Experience, System Management
Red Hat Czech, Brno
_______________________________________________
openlmi-devel mailing list
openlmi-devel@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/openlmi-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic