Better error info in API5