1
0
mirror of https://github.com/git/git synced 2024-07-07 19:39:27 +00:00

Git.pm: call Error::Simple() properly

The error message to Error::Simple() must be passed as a single argument.

Signed-off-by: Jay Soffian <jaysoffian@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Jay Soffian 2009-01-13 17:41:35 -05:00 committed by Junio C Hamano
parent 12dd111288
commit 8faea4f3b2

View File

@ -1012,8 +1012,8 @@ sub _temp_cache {
my $temp_fd = \$TEMP_FILEMAP{$name};
if (defined $$temp_fd and $$temp_fd->opened) {
if ($TEMP_FILES{$$temp_fd}{locked}) {
throw Error::Simple("Temp file with moniker '",
$name, "' already in use");
throw Error::Simple("Temp file with moniker '" .
$name . "' already in use");
}
} else {
if (defined $$temp_fd) {