Taught jsonError about Error instances.
Fixed invalid commit.