From 9f7ff8d1ba22de93efe297428414040ddf3c1679 Mon Sep 17 00:00:00 2001 From: Tom Black Date: Fri, 25 Dec 2015 23:58:02 -0600 Subject: Improve image error logging --- lib/ruby2d/image.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/ruby2d/image.rb b/lib/ruby2d/image.rb index 2ebb63b..410fd14 100644 --- a/lib/ruby2d/image.rb +++ b/lib/ruby2d/image.rb @@ -8,7 +8,7 @@ module Ruby2D def initialize(x, y, path) unless File.exists? path - raise Ruby2D::Error, "Cannot find image file!" + raise Error, "Cannot find image file `#{path}`" end @type_id = 3 -- cgit v1.2.3