diff --git a/ts/updater/util.ts b/ts/updater/util.ts index 5bff132ea..f165b7a07 100644 --- a/ts/updater/util.ts +++ b/ts/updater/util.ts @@ -75,7 +75,7 @@ async function doGracefulRename({ ); } } catch (error) { - if (error.code !== 'EACCESS' && error.code !== 'EPERM') { + if (error.code !== 'EACCES' && error.code !== 'EPERM') { throw error; } diff --git a/ts/util/rotatingPinoDest.ts b/ts/util/rotatingPinoDest.ts index a97be7d9c..02f74ec92 100644 --- a/ts/util/rotatingPinoDest.ts +++ b/ts/util/rotatingPinoDest.ts @@ -69,7 +69,7 @@ export function createRotatingPinoDest({ // delay. if ( retryCount < MAX_RETRY_COUNT && - (error.code === 'EACCESS' || error.code === 'EPERM') + (error.code === 'EACCES' || error.code === 'EPERM') ) { retryCount += 1; warn(`rotatingPinoDest: retrying rotation, retryCount=${retryCount}`);