From 05a590b169e30e27ea60902e54fe4743f82110e2 Mon Sep 17 00:00:00 2001 From: Jonathan Jenne Date: Mon, 24 Jul 2023 10:43:55 +0200 Subject: [PATCH] Patterns: Add warning when control was not found --- Patterns/Modules/Controls.vb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Patterns/Modules/Controls.vb b/Patterns/Modules/Controls.vb index 4c4f7e56..2b1cfc3e 100644 --- a/Patterns/Modules/Controls.vb +++ b/Patterns/Modules/Controls.vb @@ -89,6 +89,9 @@ Namespace Modules End Select oResult = ReplacePattern(oResult, PatternIdentifier, oReplaceValue) + Else + Logger.Warn("Control [{0}] was not found. Exiting.") + Exit While End If Catch ex As Exception Logger.Error(ex)