--- loncom/xml/run.pm 2002/03/29 18:21:00 1.24 +++ loncom/xml/run.pm 2002/04/10 14:46:30 1.25 @@ -1,6 +1,6 @@ package Apache::run; # -# $Id: run.pm,v 1.24 2002/03/29 18:21:00 albertel Exp $ +# $Id: run.pm,v 1.25 2002/04/10 14:46:30 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -59,7 +59,8 @@ sub run { $@=''; my (@result)=$safeeval->reval($code); if ($@ ne '' && !$hideerrors) { - &Apache::lonxml::error(":$@: occured while running :$code:"); + # Put in newline to make display of code easier to read. + &Apache::lonxml::error(":$@: occured while running :\n$code"); } if ( $#result < '1') { return $result[0];