Add better error message when ARM thunk fails