improved error message output for #51