Skip to content

Commit

Permalink
Fix exception in TransformationHelper (openhab#3627)
Browse files Browse the repository at this point in the history
Signed-off-by: Jan N. Klug <github@klug.nrw>
  • Loading branch information
J-N-K committed May 25, 2023
1 parent a12d64d commit 8e81beb
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -125,6 +125,8 @@ public static boolean isTransform(String pattern) {
return service.transform(function, value);
} catch (IllegalFormatException e) {
throw new TransformationException("Cannot format state '" + state + "' to format '" + format + "'", e);
} catch (RuntimeException e) {
throw new TransformationException("Transformation service threw an exception: " + e.getMessage(), e);
}
}
}

0 comments on commit 8e81beb

Please sign in to comment.