Fix calendar test

This commit is contained in:
rejas
2021-05-02 14:43:12 +02:00
committed by veeck
parent 4c8508b0a9
commit bdfd6e5e9f
5 changed files with 7 additions and 2 deletions

View File

@@ -126,6 +126,8 @@ NodeHelper.checkFetchError = function (error) {
let error_type = "MODULE_ERROR_UNSPECIFIED";
if (error.code === "EAI_AGAIN") {
error_type = "MODULE_ERROR_NO_CONNECTION";
} else if (error.message === "Unauthorized") {
error_type = "MODULE_ERROR_UNAUTHORIZED";
}
return error_type;
};