Fix undefined 'errorStr'