Check the returned script_error. This is low priority as the specific error is not part of consensus, but it could avoid unclear reporting issues such as #6862.