--- loncom/xml/lonxml.pm 2002/04/04 17:35:57 1.165 +++ loncom/xml/lonxml.pm 2002/04/10 14:46:30 1.166 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # XML Parser Module # -# $Id: lonxml.pm,v 1.165 2002/04/04 17:35:57 matthew Exp $ +# $Id: lonxml.pm,v 1.166 2002/04/10 14:46:30 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1248,7 +1248,8 @@ sub debug { sub error { if (($Apache::lonxml::debug eq 1) || ($ENV{'request.state'} eq 'construct') ) { - print "ERROR:".join('
',@_)."
\n"; + # If printing in construction space, put the error inside

+    print "ERROR:
".join("\n",@_)."
\n"; } else { print "An Error occured while processing this resource. The instructor has been notified.
"; #notify author