On Sun, Sep 11, 2011 at 2:14 AM, Stephan Beal <sgb...@googlemail.com> wrote:

> Hi, all,
>
> Is there a real semantic difference between fossil_panic() and
> fossil_fatal()? The only logic diff i see is that fossil_panic() only
> outputs once when in CGI mode, but fossil_fatal() can potentially output
> more than once (via fatal callbacks triggered in fatal()). The 'once' flag
> seems to only be there for debugging.
>

The idea is that fossil_panic() is due to some internal error of Fossil
whereas fossil_fatal() is due to some external error by the user.  But there
are cases where both functions are used incorrectly.  As currently
implemented, I think they both do the same thing, so it doesn't really
matter.  But for the sake of long-term maintenance, it would be good to move
toward using these routines consistently.


>
> --
> ----- stephan beal
> http://wanderinghorse.net/home/stephan/
>
> _______________________________________________
> fossil-users mailing list
> fossil-users@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
>


-- 
D. Richard Hipp
d...@sqlite.org
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to