pass err message, not object in json