Skip to content

Commit

Permalink
Git.pm: call Error::Simple() properly
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jay Soffian authored and Junio C Hamano committed Jan 14, 2009
1 parent 12dd111 commit 8faea4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions perl/Git.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8faea4f

Please sign in to comment.