Navigation Menu

Skip to content

Commit

Permalink
fixed a few small typos
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 23, 2012
1 parent def94d0 commit 2eb4c0d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/Mojo/Asset/File.pm
Expand Up @@ -58,7 +58,7 @@ sub add_chunk {
my $handle = $self->handle;
$handle->sysseek(0, SEEK_END);
$chunk //= '';
croak qq/Can't write to file asset: $!/
croak "Can't write to asset: $!"
unless defined $handle->syswrite($chunk, length $chunk);
return $self;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/Log.pm
Expand Up @@ -35,7 +35,7 @@ sub new {
my $self = shift;
return unless my $handle = $self->handle;
flock $handle, LOCK_EX;
croak qq/Can't write to log: $!/
croak "Can't write to log: $!"
unless defined $handle->syswrite($self->format(@_));
flock $handle, LOCK_UN;
}
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojo/Template.pm
Expand Up @@ -356,7 +356,7 @@ sub render_file {

# Slurp file
$self->name($path) unless defined $self->{name};
croak "Can't open template '$path': $!"
croak qq/Can't open template "$path": $!/
unless my $file = IO::File->new("< $path");
my $tmpl = '';
while ($file->sysread(my $buffer, CHUNK_SIZE, 0)) {
Expand Down Expand Up @@ -410,7 +410,7 @@ sub _write_file {
my ($self, $path, $output) = @_;

# Encode and write to file
croak "Can't open file '$path': $!"
croak qq/Can't open file "$path": $!/
unless my $file = IO::File->new("> $path");
$output = encode $self->encoding, $output if $self->encoding;
croak qq/Can't write to file "$path": $!/
Expand Down

0 comments on commit 2eb4c0d

Please sign in to comment.