Skip to content

Commit 8faea4f

Browse files
jaysoffiangitster
authored andcommitted
Git.pm: call Error::Simple() properly
The error message to Error::Simple() must be passed as a single argument. Signed-off-by: Jay Soffian <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 12dd111 commit 8faea4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

perl/Git.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,8 +1012,8 @@ sub _temp_cache {
10121012
my $temp_fd = \$TEMP_FILEMAP{$name};
10131013
if (defined $$temp_fd and $$temp_fd->opened) {
10141014
if ($TEMP_FILES{$$temp_fd}{locked}) {
1015-
throw Error::Simple("Temp file with moniker '",
1016-
$name, "' already in use");
1015+
throw Error::Simple("Temp file with moniker '" .
1016+
$name . "' already in use");
10171017
}
10181018
} else {
10191019
if (defined $$temp_fd) {

0 commit comments

Comments
 (0)