summaryrefslogtreecommitdiff
path: root/lib/MaildirIndexer/ScanDir.pm6
diff options
context:
space:
mode:
Diffstat (limited to 'lib/MaildirIndexer/ScanDir.pm6')
-rw-r--r--lib/MaildirIndexer/ScanDir.pm62
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/MaildirIndexer/ScanDir.pm6 b/lib/MaildirIndexer/ScanDir.pm6
index a8dfe97..b21fd81 100644
--- a/lib/MaildirIndexer/ScanDir.pm6
+++ b/lib/MaildirIndexer/ScanDir.pm6
@@ -8,7 +8,7 @@ sub scan-dir(IO() $path --> Supply) is export {
sub add-dir(IO::Path $dir, :$initial) {
%watched-dirs{$dir} = True;
- CATCH { when X::IO::Dir { }; default { warn .perl } }
+ CATCH { when X::IO::Dir { }; default { warn $_ } }
whenever $dir.watch {
my $path-io = .path.IO;