diff options
author | cppexpert <passpo99> | 2013-08-02 21:48:57 -0700 |
---|---|---|
committer | cppexpert <passpo99> | 2013-08-03 00:16:09 -0700 |
commit | 0089484e47c2baee87481ed289c8d73a7c860a2b (patch) | |
tree | 7e0e389f65d776215dd01f2fc784b93a8f65f5e3 /src/main/scala/spray | |
parent | 18be3f326e7efffc5f4c8468ab46c58966374a62 (diff) | |
download | spray-json-0089484e47c2baee87481ed289c8d73a7c860a2b.tar.gz spray-json-0089484e47c2baee87481ed289c8d73a7c860a2b.tar.bz2 spray-json-0089484e47c2baee87481ed289c8d73a7c860a2b.zip |
Added name of malformed field to error message
Diffstat (limited to 'src/main/scala/spray')
-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 070cbcc..0dca28d 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(s"Object expected in field %s".format(fieldName)) + case _ => deserializationError("Object expected in field " + fieldName) } } |