Francois Gouget : testbot/VMs: Fix _GetSnapshot() to report an error when given a nonexistent snapshot.
Alexandre Julliard
julliard at winehq.org
Tue Mar 26 11:52:22 CDT 2013
Module: tools
Branch: master
Commit: 89df2fd54a79730a8d63fb4b1256737ef0b2f828
URL: http://source.winehq.org/git/tools.git/?a=commit;h=89df2fd54a79730a8d63fb4b1256737ef0b2f828
Author: Francois Gouget <fgouget at codeweavers.com>
Date: Tue Mar 26 10:55:28 2013 +0100
testbot/VMs: Fix _GetSnapshot() to report an error when given a nonexistent snapshot.
---
testbot/lib/WineTestBot/VMs.pm | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/testbot/lib/WineTestBot/VMs.pm b/testbot/lib/WineTestBot/VMs.pm
index fdd06cb..360958e 100644
--- a/testbot/lib/WineTestBot/VMs.pm
+++ b/testbot/lib/WineTestBot/VMs.pm
@@ -287,9 +287,8 @@ sub _GetSnapshot($$)
last;
}
}
- $@ = "Snapshot '$SnapshotName' not found" if (!$Snapshot);
};
- return ($@->message(), undef, undef) if ($@);
+ return ("Snapshot '$SnapshotName' not found", undef, undef) if (!defined $Snapshot);
return (undef, $Domain, $Snapshot);
}
More information about the wine-cvs
mailing list