--- parser3/src/main/execute.C 2002/08/07 13:24:30 1.245 +++ parser3/src/main/execute.C 2002/08/08 14:04:48 1.246 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_EXECUTE_C="$Date: 2002/08/07 13:24:30 $"; +static const char* IDENT_EXECUTE_C="$Date: 2002/08/08 14:04:48 $"; #include "pa_opcode.h" #include "pa_array.h" @@ -1007,6 +1007,10 @@ void Request::execute_method(Value& asel } local_frame.set_self(*self); root=rcontext=wcontext=&local_frame; + + // prevent non-string writes for better error reporting + if(return_string) + wcontext->write(local_frame); // execute! execute(*method.parser_code);