diff options
author | Johannes Rudolph <johannes.rudolph@gmail.com> | 2013-08-03 03:51:07 -0700 |
---|---|---|
committer | Johannes Rudolph <johannes.rudolph@gmail.com> | 2013-08-03 03:51:07 -0700 |
commit | e35d195b46a006f57121caaaabda1435f0cd4ef8 (patch) | |
tree | f29b6e7633901e4c8c235e2b9f0ba4ae47e93143 /src | |
parent | ee05e7c3b1f31b2824858f966d46cf17f61bdda9 (diff) | |
parent | 0089484e47c2baee87481ed289c8d73a7c860a2b (diff) | |
download | spray-json-e35d195b46a006f57121caaaabda1435f0cd4ef8.tar.gz spray-json-e35d195b46a006f57121caaaabda1435f0cd4ef8.tar.bz2 spray-json-e35d195b46a006f57121caaaabda1435f0cd4ef8.zip |
Merge pull request #62 from cppexpert/master
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 d364af0..c3a94e1 100644 --- a/src/main/scala/spray/json/ProductFormats.scala +++ b/src/main/scala/spray/json/ProductFormats.scala @@ -50,7 +50,7 @@ trait ProductFormats extends ProductFormatsInstances { if (reader.isInstanceOf[OptionFormat[_]]) None.asInstanceOf[T] else deserializationError("Object is missing required member '" + fieldName + "'", e) } - case _ => deserializationError("Object expected") + case _ => deserializationError("Object expected in field " + fieldName) } } |