Francois Gouget : winetest: We may not have a report tag for the error message.
Module: tools Branch: master Commit: 0a55c3acb2097e16acef12104fc26d9fcb2c7cca URL: http://source.winehq.org/git/tools.git/?a=commit;h=0a55c3acb2097e16acef12104... Author: Francois Gouget <fgouget(a)codeweavers.com> Date: Wed Feb 8 08:08:06 2017 +0100 winetest: We may not have a report tag for the error message. For instance if the commit id is not valid we issue the error message before $tag is set. Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- winetest/dissect | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winetest/dissect b/winetest/dissect index ccb6d1d..f5b6744 100755 --- a/winetest/dissect +++ b/winetest/dissect @@ -63,7 +63,7 @@ sub mydie(@) { print STDERR "$name0:error: unable to rename '$tmpdir' to '$errdir': $!\n"; exit 3; } - my $label = substr($tag,1) || "???"; + my $label = $tag ? substr($tag, 1) : "<notag>"; if (open ERR, ">$errdir/error") { print ERR "$label: ", @_;
participants (1)
-
Alexandre Julliard