From aa8a6297f786fe003b8126a5a15974c741851c94 Mon Sep 17 00:00:00 2001 From: Adrien Castex Date: Mon, 19 Jun 2017 15:08:24 +0200 Subject: [PATCH] Added a 'MustIgnore' error which can make the server to skin some checks (mostly lock tests) --- lib/Errors.d.ts | 1 + lib/Errors.js | 1 + src/Errors.ts | 1 + 3 files changed, 3 insertions(+) diff --git a/lib/Errors.d.ts b/lib/Errors.d.ts index 5926b621..b0950662 100644 --- a/lib/Errors.d.ts +++ b/lib/Errors.d.ts @@ -26,6 +26,7 @@ export declare const Errors: { NoMimeTypeForAFolder: Error; NoSizeForAFolder: Error; IllegalArguments: Error; + MustIgnore: Error; None: any; }; export default Errors; diff --git a/lib/Errors.js b/lib/Errors.js index a7b803c5..c710e5f1 100644 --- a/lib/Errors.js +++ b/lib/Errors.js @@ -50,6 +50,7 @@ exports.Errors = { NoMimeTypeForAFolder: new Error('Cannot get the mime type of a folder type resource.'), NoSizeForAFolder: new Error('Cannot get the size of a folder type resource.'), IllegalArguments: new Error('Illegal arguments.'), + MustIgnore: new Error('There was an error but it must not stop the processing.'), None: null }; exports.default = exports.Errors; diff --git a/src/Errors.ts b/src/Errors.ts index 33a88005..722dc01d 100644 --- a/src/Errors.ts +++ b/src/Errors.ts @@ -34,6 +34,7 @@ export const Errors = { NoMimeTypeForAFolder: new Error('Cannot get the mime type of a folder type resource.'), NoSizeForAFolder: new Error('Cannot get the size of a folder type resource.'), IllegalArguments: new Error('Illegal arguments.'), + MustIgnore: new Error('There was an error but it must not stop the processing.'), None: null };