From 06ed59dc392fd738c9838c0118e279e3d9c3a164 Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Thu, 18 Apr 2019 15:47:47 +0100 Subject: [PATCH] refactor: a better abort error message (#47) Change to message as described here: https://heycam.github.io/webidl/#aborterror --- src/errors.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/errors.js b/src/errors.js index 40dd027..38609c1 100644 --- a/src/errors.js +++ b/src/errors.js @@ -2,7 +2,7 @@ class AbortError extends Error { constructor () { - super('AbortError') + super('The operation was aborted') this.code = AbortError.code this.type = AbortError.type }