Add failing test case for #145

Expose curl error message