From f95de49a4ce06bb2b3bcd15294a71b296ea83bb9 Mon Sep 17 00:00:00 2001 From: Jeff Dickey <216188+jdxcode@users.noreply.github.com> Date: Fri, 18 May 2018 10:23:34 -0700 Subject: [PATCH] fix: error on timeout --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 2f8647a0..00a4edcb 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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() {