improve error output when setting compass corr params

The previous implementation didn't catch a number of error codes
(EPHIDGET_INVALIDARG, EPHIDGET_NOTATTACHED, EPHIDGET_UNEXPECTED), and the new
one is more elegant and consistent with the previous code anyway.