Skip to content

Commit

Permalink
Fix error message bug to show the correct destination ID thats missing (
Browse files Browse the repository at this point in the history
#685)

Signed-off-by: Ashish Agrawal <[email protected]>

Signed-off-by: Ashish Agrawal <[email protected]>
  • Loading branch information
lezzago authored Dec 20, 2022
1 parent 41265f8 commit 2a1a185
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ abstract class MonitorRunner {
): String {
val config = getConfigForNotificationAction(action, monitorCtx)
if (config.destination == null && config.channel == null) {
throw IllegalStateException("Unable to find a Notification Channel or Destination config with id [${action.id}]")
throw IllegalStateException("Unable to find a Notification Channel or Destination config with id [${action.destinationId}]")
}

// Adding a check on TEST_ACTION Destination type here to avoid supporting it as a LegacyBaseMessage type
Expand Down

0 comments on commit 2a1a185

Please sign in to comment.