diff --git a/README.md b/README.md index 75d7be10..09c6158f 100644 --- a/README.md +++ b/README.md @@ -181,12 +181,12 @@ const actionAttempt = await seam.locks.unlockDoor({ try { await resolveActionAttempt(actionAttempt, seam) } catch (err: unknown) { - if (isSeamActionAttemptFailedError(err)) { + if (isSeamActionAttemptFailedError(err)) { console.log('Could not unlock the door') return } - if (isSeamActionAttemptTimeoutError(err)) { + if (isSeamActionAttemptTimeoutError(err)) { console.log('Door took too long to unlock') return } diff --git a/examples/unlock.ts b/examples/unlock.ts index 8d7b7ee4..6debf4e9 100644 --- a/examples/unlock.ts +++ b/examples/unlock.ts @@ -35,12 +35,12 @@ export const handler: Handler = async ({ deviceId, seam, logger }) => { ) logger.info({ actionAttempt: sucessfulActionAttempt }, 'unlocked') } catch (err: unknown) { - if (isSeamActionAttemptFailedError(err)) { + if (isSeamActionAttemptFailedError(err)) { logger.info({ err }, 'Could not unlock the door') return } - if (isSeamActionAttemptTimeoutError(err)) { + if (isSeamActionAttemptTimeoutError(err)) { logger.info({ err }, 'Door took too long to unlock') return }