diff options
| author | Tom Black <[email protected]> | 2015-12-25 23:58:02 -0600 |
|---|---|---|
| committer | Tom Black <[email protected]> | 2015-12-25 23:58:02 -0600 |
| commit | 9f7ff8d1ba22de93efe297428414040ddf3c1679 (patch) | |
| tree | 5b70686ef60a8b66c027fbbf4404b017aa6da956 /lib | |
| parent | 612b73a6710ecec0e6daed2c9bcba6107905649e (diff) | |
| download | ruby2d-9f7ff8d1ba22de93efe297428414040ddf3c1679.tar.gz ruby2d-9f7ff8d1ba22de93efe297428414040ddf3c1679.zip | |
Improve image error logging
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/ruby2d/image.rb | 2 |
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 |
