summaryrefslogtreecommitdiff
path: root/src/misc/errors.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/misc/errors.js')
-rw-r--r--src/misc/errors.js19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/misc/errors.js b/src/misc/errors.js
deleted file mode 100644
index 1891aa0..0000000
--- a/src/misc/errors.js
+++ /dev/null
@@ -1,19 +0,0 @@
-export const DOES_NOT_SUPPORT_FETCH = 0;
-
-export const errors = {
- [DOES_NOT_SUPPORT_FETCH]: {
- message: 'Browser not supported!',
- detail: 'This browser does not support "fetch", please choose another one.'
- },
- default: {
- message: 'Oops, something went wrong!'
- }
-};
-
-export function deriveMessageFromError(err) {
- const { code } = err;
- if (typeof code === 'number') {
- return errors[code];
- }
- return errors.default;
-}