Mercurial Hosting > luan
changeset 1477:509736ad42e6
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 21 Apr 2020 15:05:39 -0600 |
parents | 7d145095cc0b |
children | 37e582f2e266 |
files | src/goodjava/json/JsonToString.java |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/goodjava/json/JsonToString.java Sun Apr 19 20:42:26 2020 -0600 +++ b/src/goodjava/json/JsonToString.java Tue Apr 21 15:05:39 2020 -0600 @@ -150,7 +150,7 @@ private void toString(Map.Entry entry,StringBuilder sb,int indented) throws JsonException { Object key = entry.getKey(); if( !(key instanceof String) ) - throw new JsonException("table keys must be strings"); + throw new JsonException("table keys must be strings but got "+key.getClass().getSimpleName()+" ("+key+"="+entry.getValue()+")"); toString((String)key,sb); sb.append(colon); toString(entry.getValue(),sb,indented);