Skip to content

Commit

Permalink
[darksky] Added warning if parsing of 'location' parameter throws exc…
Browse files Browse the repository at this point in the history
…eption (openhab#7831)

* Added warning if parsing of 'location' parameter throws exception

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
  • Loading branch information
cweitkamp authored and andrewfg committed Aug 31, 2020
1 parent 2f0bf9d commit 254f682
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,10 @@ public void initialize() {
try {
location = new PointType(config.location);
} catch (IllegalArgumentException e) {
location = null;
logger.warn("Error parsing 'location' parameter: {}", e.getMessage());
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.CONFIGURATION_ERROR,
"@text/offline.conf-error-parsing-location");
location = null;
configValid = false;
}

Expand Down

0 comments on commit 254f682

Please sign in to comment.