Update jsdoc

This commit is contained in:
rejas
2021-05-15 14:49:04 +02:00
committed by veeck
parent bdfd6e5e9f
commit 4b1c7da171
5 changed files with 28 additions and 13 deletions

View File

@@ -122,6 +122,13 @@ NodeHelper.checkFetchStatus = function (response) {
}
};
/**
* Look at the specified error and return an appropriate error type, that
* can be translated to a detailed error message
*
* @param {Error} error the error from fetching something
* @returns {string} the string of the detailed error message in the translations
*/
NodeHelper.checkFetchError = function (error) {
let error_type = "MODULE_ERROR_UNSPECIFIED";
if (error.code === "EAI_AGAIN") {