[minor] Better error reporting