Skip to content

Commit

Permalink
Test report output wrong, added error
Browse files Browse the repository at this point in the history
  • Loading branch information
agjohnson committed May 2, 2012
1 parent 71ed446 commit ad512e6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/Csistck/Test.pm
Expand Up @@ -61,7 +61,12 @@ sub execute {

# Return should be an object from now on. If not blessed, assume ret value
if (blessed($ret) and $ret->isa('Csistck::Test::Return')) {
Csistck::Oper::info($ret->msg);
if ($ret->resp) {
Csistck::Oper::info($ret->msg);
}
else {
Csistck::Oper::error($ret->msg);
}
return $ret;
}
else {
Expand Down

0 comments on commit ad512e6

Please sign in to comment.