summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTom Black <[email protected]>2015-12-25 23:58:02 -0600
committerTom Black <[email protected]>2015-12-25 23:58:02 -0600
commit9f7ff8d1ba22de93efe297428414040ddf3c1679 (patch)
tree5b70686ef60a8b66c027fbbf4404b017aa6da956
parent612b73a6710ecec0e6daed2c9bcba6107905649e (diff)
downloadruby2d-9f7ff8d1ba22de93efe297428414040ddf3c1679.tar.gz
ruby2d-9f7ff8d1ba22de93efe297428414040ddf3c1679.zip
Improve image error logging
-rw-r--r--lib/ruby2d/image.rb2
1 files changed, 1 insertions, 1 deletions
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