Changeset 252

Show
Ignore:
Timestamp:
10/17/07 01:22:20 (11 months ago)
Author:
hans
Message:

Fixing #164 - Fatal error in XmlLogger when handling a build failure.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.3/classes/phing/listener/XmlLogger.php

    r175 r252  
    143143                $elapsedTime = Phing::currentTimeMillis() - $this->buildTimerStart; 
    144144                 
     145                print "The build has finished!\n"; 
     146                 
    145147                $this->buildElement->setAttribute(XmlLogger::TIME_ATTR, DefaultLogger::formatTime($elapsedTime)); 
    146148                 
    147149                if ($event->getException() != null) { 
    148                         $this->buildElement->setAttribute(XmlLogger::ERROR_ATTR, $event->getException()->toString()); 
     150                        $this->buildElement->setAttribute(XmlLogger::ERROR_ATTR, $event->getException()->getMessage()); 
    149151                        $errText = $this->doc->createCDATASection($event->getException()->getTraceAsString()); 
    150152                        $stacktrace = $this->doc->createElement(XmlLogger::STACKTRACE_TAG);