Maybe returning a more explicit error would help?