more specific error reporting in mapping file check.