Refs #4543: improve reporting on error