[snowpatch] [PATCH] jenkins: get_build_status(): give a better error when JSON decoding fails

Russell Currey ruscur at russell.cc
Wed Apr 20 14:05:37 AEST 2016


On Fri, 2016-04-08 at 18:00 +1000, Andrew Donnellan wrote:
> If Jenkins returns invalid JSON, use .unwrap_or_else() to print the JSON
> decode error when we panic. Ideally, we should fail more gracefully than
> this, but this is still an improvement on just using .unwrap().
> 
> Signed-off-by: Andrew Donnellan <andrew.donnellan at au1.ibm.com>
> ---

Applied to master as of 36ca61d770a866eff1011f584cb82b59ba22fc0b, thanks.


More information about the snowpatch mailing list