enumerate non-enumerable properties of an error object