aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2017-04-26 09:03:35 +0200
committerPatrick Spek <p.spek@tyil.nl>2017-04-26 09:03:35 +0200
commit2fa145223277129586ae290edbd5362d6904507d (patch)
tree63d22202e80671d4931931f1853832177ccd075f
parent3f4b16f712aa4b5c610319c79b7e1d7d04140503 (diff)
Fix thrown exception
-rw-r--r--lib/Config.pm62
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Config.pm6 b/lib/Config.pm6
index 22cd2a3..40bfa27 100644
--- a/lib/Config.pm6
+++ b/lib/Config.pm6
@@ -63,7 +63,7 @@ class Config is export
my $type = self.get-parser-type($path);
Config::Exception::UnknownTypeException.new(
- type => $type
+ file => $path
).throw() if $type eq Config::Type::unknown;
"Config::Parser::" ~ $type;