Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Commit

Permalink
fix: error on timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed May 18, 2018
1 parent c417150 commit f95de49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export const ux = {
})
}

return Promise.race([p, wait(ms, true).then(() => ux.warn('timed out'))])
return Promise.race([p, wait(ms, true).then(() => ux.error('timed out'))])
}

async function flush() {
Expand Down

0 comments on commit f95de49

Please sign in to comment.