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
opensearch-project#685) (opensearch-project#716)

Signed-off-by: Ashish Agrawal <ashisagr@amazon.com>

Signed-off-by: Ashish Agrawal <ashisagr@amazon.com>
(cherry picked from commit 2a1a185)

Co-authored-by: Ashish Agrawal <ashisagr@amazon.com>
  • Loading branch information
opensearch-trigger-bot[bot] and lezzago committed Dec 21, 2022
1 parent 95ebcdb commit ecba617
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 ecba617

Please sign in to comment.