attempt to improve error message for #986