Skip to content

Commit

Permalink
chore: fix EsLint error by adding error message
Browse files Browse the repository at this point in the history
to Promise
  • Loading branch information
rugk committed May 28, 2021
1 parent 8743974 commit 4e6c058
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/LoadAndSave.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,9 @@ function setManagedOption(option, optionGroup, elOption = getElementFromOptionId
return gettingOption.then((res) => {
// This ensures Chrom/ium compatbility, see https://github.com/TinyWebEx/AutomaticSettings/issues/12
if (!res || Object.keys(res).length === 0) {
return Promise.reject();
return Promise.reject(new Error("No data given for managed option. Rejecting promise to ensure Chrome/ium compatibility."));
};

showManagedInfo();

console.info("managed config found", res, elOption);
Expand Down

0 comments on commit 4e6c058

Please sign in to comment.