diff options
author | cppexpert <passpo99> | 2013-08-02 21:48:57 -0700 |
---|---|---|
committer | cppexpert <passpo99> | 2013-08-02 21:48:57 -0700 |
commit | 18be3f326e7efffc5f4c8468ab46c58966374a62 (patch) | |
tree | 64ae7d19ad39019a70fcc85b04607dcc7db2253a /src | |
parent | f477d68465fd3483a899532f38cb77aa8f12835c (diff) | |
download | spray-json-18be3f326e7efffc5f4c8468ab46c58966374a62.tar.gz spray-json-18be3f326e7efffc5f4c8468ab46c58966374a62.tar.bz2 spray-json-18be3f326e7efffc5f4c8468ab46c58966374a62.zip |
Added name of malformed field to error message
Diffstat (limited to 'src')
-rw-r--r-- | src/main/scala/spray/json/ProductFormats.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/scala/spray/json/ProductFormats.scala b/src/main/scala/spray/json/ProductFormats.scala index 5504fbd..070cbcc 100644 --- a/src/main/scala/spray/json/ProductFormats.scala +++ b/src/main/scala/spray/json/ProductFormats.scala @@ -488,7 +488,7 @@ trait ProductFormats { if (reader.isInstanceOf[OptionFormat[_]]) None.asInstanceOf[T] else deserializationError("Object is missing required member '" + fieldName + "'", e) } - case _ => deserializationError("Object expected") + case _ => deserializationError(s"Object expected in field %s".format(fieldName)) } } |