ZooFlow: Improve error messages
This commit is contained in:
parent
69c81cf2fc
commit
1de0e47069
@ -858,27 +858,42 @@ Public Class frmFlowForm
|
||||
oState.CurrentClipboardContents = ClipboardContents
|
||||
|
||||
If oState.MonitoringActive = False Then
|
||||
Logger.Info("Clipboard Watcher is not active!")
|
||||
Dim oMessage As String = "Clipboard Watcher is not active!"
|
||||
Logger.Info(oMessage)
|
||||
MsgBox(oMessage, MsgBoxStyle.Critical, Text)
|
||||
|
||||
Exit Sub
|
||||
End If
|
||||
|
||||
If oState.UserProfiles Is Nothing Then
|
||||
Logger.Warn("User Profiles is empty!")
|
||||
Dim oMessage As String = "User Profiles are empty!"
|
||||
Logger.Info(oMessage)
|
||||
MsgBox(oMessage, MsgBoxStyle.Critical, Text)
|
||||
|
||||
Exit Sub
|
||||
End If
|
||||
|
||||
If oState.ProfileProcesses Is Nothing OrElse oState.ProfileProcesses.Rows.Count = 0 Then
|
||||
Logger.Warn("Profile Processes is empty!")
|
||||
Dim oMessage As String = "Profile Processes are empty!"
|
||||
Logger.Info(oMessage)
|
||||
MsgBox(oMessage, MsgBoxStyle.Critical, Text)
|
||||
|
||||
Exit Sub
|
||||
End If
|
||||
|
||||
If oState.ProfileWindows Is Nothing OrElse oState.ProfileWindows.Rows.Count = 0 Then
|
||||
Logger.Warn("Profile Processes is empty!")
|
||||
Dim oMessage As String = "Profile Processes are empty!"
|
||||
Logger.Info(oMessage)
|
||||
MsgBox(oMessage, MsgBoxStyle.Critical, Text)
|
||||
|
||||
Exit Sub
|
||||
End If
|
||||
|
||||
If oState.ProfileProcesses Is Nothing OrElse oState.ProfileProcesses.Rows.Count = 0 Then
|
||||
Logger.Warn("Profile Processes is empty!")
|
||||
Dim oMessage As String = "Profile Processes are empty!"
|
||||
Logger.Info(oMessage)
|
||||
MsgBox(oMessage, MsgBoxStyle.Critical, Text)
|
||||
|
||||
Exit Sub
|
||||
End If
|
||||
|
||||
@ -894,7 +909,7 @@ Public Class frmFlowForm
|
||||
oState.MatchTreeView)
|
||||
Catch ex As Exception
|
||||
Logger.Error(ex)
|
||||
MsgBox("Fehler beim Laden der Profile. Möglicherweise liegt ein Konfigurationsfehler vor. Mehr Informationen im Log.", MsgBoxStyle.Critical, Text)
|
||||
MsgBox("Fehler beim Laden der Profile. Möglicherweise liegt ein Konfigurationsfehler vor. Fehlermeldung: " & ex.Message, MsgBoxStyle.Critical, Text)
|
||||
End Try
|
||||
|
||||
Try
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user