Skip to content

Commit 4e6c058

Browse files
committed
chore: fix EsLint error by adding error message
to Promise
1 parent 8743974 commit 4e6c058

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/LoadAndSave.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,9 @@ function setManagedOption(option, optionGroup, elOption = getElementFromOptionId
167167
return gettingOption.then((res) => {
168168
// This ensures Chrom/ium compatbility, see https://github.com/TinyWebEx/AutomaticSettings/issues/12
169169
if (!res || Object.keys(res).length === 0) {
170-
return Promise.reject();
170+
return Promise.reject(new Error("No data given for managed option. Rejecting promise to ensure Chrome/ium compatibility."));
171171
};
172-
172+
173173
showManagedInfo();
174174

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

0 commit comments

Comments
 (0)