I'd use: `results[i] = '' + e ? e.name : 'UnknownError';`