testbot: Always log the 'errno' with an error.
Francois Gouget
fgouget at codeweavers.com
Wed Apr 24 11:38:12 CDT 2013
Also log the relevant filename if any.
---
testbot/bin/WineSendLog.pl | 2 +-
testbot/lib/WineTestBot/Log.pm | 2 +-
testbot/lib/WineTestBot/Tasks.pm | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/testbot/bin/WineSendLog.pl b/testbot/bin/WineSendLog.pl
index d2f2daf..3c3ff8c 100755
--- a/testbot/bin/WineSendLog.pl
+++ b/testbot/bin/WineSendLog.pl
@@ -131,7 +131,7 @@ sub ReadLog
}
else
{
- LogMsg "Unable to open log $LogName\n";
+ LogMsg "Unable to open '$LogName' for reading: $!\n";
}
return \@Messages;
diff --git a/testbot/lib/WineTestBot/Log.pm b/testbot/lib/WineTestBot/Log.pm
index 6982943..b88ba6f 100644
--- a/testbot/lib/WineTestBot/Log.pm
+++ b/testbot/lib/WineTestBot/Log.pm
@@ -70,7 +70,7 @@ sub SetupRedirects()
}
else
{
- LogMsg "unable to redirect stderr to the log file\n";
+ LogMsg "unable to redirect stderr to '$logfile': $!\n";
}
}
}
diff --git a/testbot/lib/WineTestBot/Tasks.pm b/testbot/lib/WineTestBot/Tasks.pm
index c892066..210815d 100644
--- a/testbot/lib/WineTestBot/Tasks.pm
+++ b/testbot/lib/WineTestBot/Tasks.pm
@@ -119,7 +119,7 @@ sub Run
}
else
{
- LogMsg "unable to redirect stderr to '$TaskDir/err'\n";
+ LogMsg "unable to redirect stderr to '$TaskDir/err': $!\n";
}
$ENV{PATH} = "/usr/bin:/bin";
delete $ENV{ENV};
--
1.7.10.4
More information about the wine-patches
mailing list