From b01a053e3d4012064a667745634010dd654b4777 Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Mon, 24 Apr 2017 11:12:08 +0200 Subject: Update exceptions with more meaningful messages --- lib/Config/Exception/FileNotFoundException.pm6 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/Config/Exception/FileNotFoundException.pm6') diff --git a/lib/Config/Exception/FileNotFoundException.pm6 b/lib/Config/Exception/FileNotFoundException.pm6 index 74d7bc1..b00f956 100644 --- a/lib/Config/Exception/FileNotFoundException.pm6 +++ b/lib/Config/Exception/FileNotFoundException.pm6 @@ -4,8 +4,10 @@ use v6.c; class Config::Exception::FileNotFoundException is Exception { + has Str $.path; + method message() { - "Could not find file" + "Could not find file at $!path" } } -- cgit v1.1