Changeset 8c44f33


Ignore:
Timestamp:
12/17/11 15:42:15 (5 months ago)
Author:
mrook
Branches:
master
Children:
850d3cc
Parents:
2e417d3
git-author:
Michiel Rook <mrook@…> (12/17/11 15:42:15)
git-committer:
Michiel Rook <mrook@…> (12/17/11 15:42:15)
Message:

Fixes #807 - errstr variable is not always set

File:
1 edited

Legend:

Unmodified
Added
Removed
  • classes/phing/tasks/ext/svn/SvnBaseTask.php

    r0a714d7 r8c44f33  
    332332                $err = current($errs); 
    333333                 
    334                 throw new BuildException("Failed to run the 'svn " . $this->mode . "' command: " . $err['params']['errstr']); 
     334                $errorMessage = $err['message']; 
     335                 
     336                if (isset($err['params']['errstr'])) { 
     337                    $errorMessage = $err['params']['errstr']; 
     338                } 
     339                 
     340                throw new BuildException("Failed to run the 'svn " . $this->mode . "' command: " . $errorMessage); 
    335341            } 
    336342        } 
Note: See TracChangeset for help on using the changeset viewer.