Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make the filename shorter to fit more useful info
Original complaint was that the filename is too long and the error message
is less useful because the filename appears several times and takes up all
space. After 6ff428d the situation got better, but not much.

This commit changes the filename to <tmp>. That's very short but is probably
still clear enough.

Closes #8
  • Loading branch information
AlexDaniel committed Jun 10, 2016
1 parent fa2e44f commit 4ef2b55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion evalbot.pl
Expand Up @@ -298,7 +298,7 @@ package Evalbot;
my $null = "\N{SYMBOL FOR NULL}";
$response =~ s/\n/$newline/g;
$response =~ s/\x00/$null/g;
$response =~ s|/tmp/evalbot-file-\w{10}|/tmp/tmpfile|g;
$response =~ s|/tmp/evalbot-file-\w{10}|<tmp>|g;
$response = IRC::FromANSI::Tiny::convert($response);

my $format_len = length(encode_utf8(sprintf $format_res, $prefix, ''));
Expand Down

0 comments on commit 4ef2b55

Please sign in to comment.