Skip to content

Commit

Permalink
added warn if id is set to undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
Grizzelbee committed Mar 26, 2024
1 parent 6748f18 commit caeafcb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,8 @@ class Wireguard extends utils.Adapter {
adapter.setObjectNotExists(id, objData, () => {adapter.setState(id, value, true);});
}
});
} else {
adapter.log.warn(`Setting ${id} to ${value} is senseless. Please open an issue on github and provide a debug log sowing the occurrence of this issue.`);
}
}

Expand Down

0 comments on commit caeafcb

Please sign in to comment.