flattenErrorObject