Author: paultcochrane
Date: Mon May 7 08:26:37 2007
New Revision: 18451
Modified:
trunk/src/packfile.c
trunk/t/op/load_bytecode.t
Log:
Improving the error message output of load_bytecode. Patch courtesy of Mike
Mattie <codermattie at gmail dot com>.
Modified: trunk/src/packfile.c
==============================================================================
--- trunk/src/packfile.c (original)
+++ trunk/src/packfile.c Mon May 7 08:26:37 2007
@@ -3436,7 +3436,7 @@
path = Parrot_locate_runtime_file_str(interp, file_str, file_type);
if (!path) {
real_exception(interp, NULL, E_LibraryNotLoadedError,
- "Couldn't find file '%Ss'", file_str);
+ "\"load_bytecode\" couldn't find file '%Ss'", file_str);
return;
}
/* remember wo_ext => full_path mapping */
Modified: trunk/t/op/load_bytecode.t
==============================================================================
--- trunk/t/op/load_bytecode.t (original)
+++ trunk/t/op/load_bytecode.t Mon May 7 08:26:37 2007
@@ -35,7 +35,7 @@
load_bytecode 'no_file_by_this_name'
.end
CODE
-/Couldn't find file 'no_file_by_this_name'/
+/"load_bytecode" couldn't find file 'no_file_by_this_name'/
OUTPUT
# Local Variables: