Summary: | Refactor and extend error parsing/production to support application-specific errors, etc. | ||
---|---|---|---|
Product: | Wocky | Reporter: | Will Thompson <will> |
Component: | General | Assignee: | Will Thompson <will> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | senko.rasic |
Version: | git master | Keywords: | patch |
Hardware: | Other | ||
OS: | All | ||
URL: | http://git.collabora.co.uk/?p=user/wjt/wocky.git;a=shortlog;h=refs/heads/error-wrangling | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Will Thompson
2010-02-03 07:28:22 UTC
(I have a corresponding Gabble branch that updates it for the changes this Wocky branch introduces.) d915abf0858f13c000203685bbfce8368803dd60: The while loop doesn't actually iterate the list of children, causing an infinite loop if the error isn't the first child. Seems to be removed in a later commit 5c88062e9470be54720a5bca1a4a3276f028e578 First hunk has if (!quark), all others do if (quark == 0). 4da39e6569b55ab29610e3f27c2de3ade4db5acd Nitpick, i'm a sucker for user g_slist_next instead of ->next. But that's just me 86490fc3bcf9c87b0b7be9d6eaadadbc9cbf1c01 Nitpick, this assumes wocky_enum_from_nick doesn't change type_i iff it couldn't find the type. Might be more defensive to check the return and only then set it to TYPE_CANCEL (In reply to comment #2) > d915abf0858f13c000203685bbfce8368803dd60: > > The while loop doesn't actually iterate the list of children, causing an > infinite loop if the error isn't the first child. Seems to be removed in a > later commit Good catch. But it is indeed removed later. I could edit the past, but it doesn't seem too necessary. > 5c88062e9470be54720a5bca1a4a3276f028e578 > > First hunk has if (!quark), all others do if (quark == 0). Yep; fixed in 533bbdc. > 4da39e6569b55ab29610e3f27c2de3ade4db5acd > > Nitpick, i'm a sucker for user g_slist_next instead of ->next. But that's just > me I don't think it's any clearer, and it's more typing. :) > 86490fc3bcf9c87b0b7be9d6eaadadbc9cbf1c01 > > Nitpick, this assumes wocky_enum_from_nick doesn't change type_i iff it > couldn't find the type. Might be more defensive to check the return and only > then set it to TYPE_CANCEL Instead, I documented this assumption in enum_from_nick()'s docstring: f6842a6 Gabble branch on its way... Here's a Gabble branch with minimal changes to work with a new snapshot of Wocky: http://git.collabora.co.uk/?p=user/wjt/telepathy-gabble-wjt.git;a=shortlog;h=refs/heads/error-wrangling Both the Wocky branch and the Gabble branch are merged, with Sjoerd's approval! Will be in Gabble 0.9.5. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.