Use try/catch instead of the function returning an (ugly) errorString.
let errorString = mergeLevel2Json(bgContext: bgContext, // for database access on this thread
jsonData: jsonData, // string to parse
club: club, // club that this level2.json file should describe
urlComponents: urlComponents) // used for logging messages
Use try/catch instead of the function returning an (ugly) errorString.