From 66f64da5c6b0813a8cee47d8c2361f1f64bbd692 Mon Sep 17 00:00:00 2001 From: eleksir Date: Mon, 5 Jul 2021 13:54:27 +0300 Subject: [PATCH] Fix incorrect error message when unable to create gamestatdir --- lib/BotLib/Gamestat.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/BotLib/Gamestat.pm b/lib/BotLib/Gamestat.pm index bffe221..db0497e 100644 --- a/lib/BotLib/Gamestat.pm +++ b/lib/BotLib/Gamestat.pm @@ -60,7 +60,7 @@ sub SeedArtifacts { $tablename = lc ($tablename); unless (-d $gamestatdir) { - make_path ($gamestatdir) || die "Unable to create $dir: $OS_ERROR\n"; + make_path ($gamestatdir) || die "Unable to create $gamestatdir: $OS_ERROR\n"; } my $dbh = DBI->connect ("dbi:SQLite:$dbfile", '', '');