diff options
author | Florian Frank <flori@ping.de> | 2010-08-20 09:45:05 +0200 |
---|---|---|
committer | Florian Frank <flori@ping.de> | 2010-08-20 09:45:05 +0200 |
commit | 5ffce181a04139fb6716ee09cc9d4ddaf227c549 (patch) | |
tree | 49c97351a0a56fefb7380d64fce5e8e3da31c407 | |
parent | 79f0aed477e86d7d06693f6e2b22b07caade50dd (diff) | |
download | json-5ffce181a04139fb6716ee09cc9d4ddaf227c549.tar.gz |
better debugging message
-rw-r--r-- | CHANGES | 1 | ||||
-rw-r--r-- | lib/json/common.rb | 4 |
2 files changed, 3 insertions, 2 deletions
@@ -1,6 +1,7 @@ 2010-08-15 (1.5.0) * Included Java source codes for the Jruby extension made by Daniel Luz <dev@mernen.com>. + * Output full exception message of deep_const_get to aid debugging. 2010-08-09 (1.4.6) * Fixed oversight reported in http://github.com/flori/json/issues/closed#issue/23, always create a new object from the state prototype. diff --git a/lib/json/common.rb b/lib/json/common.rb index b530670..1c91672 100644 --- a/lib/json/common.rb +++ b/lib/json/common.rb @@ -40,8 +40,8 @@ module JSON else begin p.const_missing(c) - rescue NameError - raise ArgumentError, "can't find const #{path}" + rescue NameError => e + raise ArgumentError, "can't get const #{path}: #{e}" end end end |