From: Ben Pfaff Date: Fri, 8 Dec 2006 15:29:58 +0000 (+0000) Subject: Fix error message when archive fails to open. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f76b6130c127c5ff3cbb1dc15afbc68a2518edb7;p=pintos-anon Fix error message when archive fails to open. --- diff --git a/src/tests/tests.pm b/src/tests/tests.pm index 822e7c9..179f110 100644 --- a/src/tests/tests.pm +++ b/src/tests/tests.pm @@ -510,7 +510,7 @@ sub flatten_hierarchy { sub read_tar { my ($archive) = @_; my (%content); - open (ARCHIVE, '<', $archive) or fail "$archive: open: $1\n"; + open (ARCHIVE, '<', $archive) or fail "$archive: open: $!\n"; for (;;) { my ($header); if ((my $retval = sysread (ARCHIVE, $header, 512)) != 512) {