Separate out error detection and reporting into their own functions, so that usage patterns 1 and 2 can both use them.
Separate out error detection and reporting into their own functions, so that usage patterns 1 and 2 can both use them.

lmaurits/gopherfeed,pombredanne/gopherfeed