small error message updates, removed posting of current tab URL to discord

main
Yuriy 1 year ago
parent 3f559f2f81
commit 9dda0e54f0

@ -236,12 +236,15 @@ NavigateFromBaseURLTo(URL,PageTitle := "TodoDeleteme"){
Message = Checking for URLBase: %URLBase% within ChromeTabsURLArray Message = Checking for URLBase: %URLBase% within ChromeTabsURLArray
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging") SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
; msgbox % HasSubstringVal(ChromeTabsURLArray, URLBase) . "`n`n is the status of URLbase in ChromeTabsURLArray"
; if URLBase is NOT a substring within any of the values in the array ; if URLBase is NOT a substring within any of the values in the array
if(!HasSubstringVal(ChromeTabsURLArray, URLBase)) if(!HasSubstringVal(ChromeTabsURLArray, URLBase))
{ {
; DevModeMsgBox("Creating new tab") ; DevModeMsgBox("Creating new tab")
Message = Tab for %urlBase% does not exist. Creating new tab with URL: %URL% Message = Chrome tab does not exist. Creating new tab ;. Creating new tab with URL: %URL%
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
try, run "%ChromeFilepath%" "%URL%" try, run "%ChromeFilepath%" "%URL%"
catch e { catch e {
Message = Trying to Run Chrome with URL failed for some reason. Wrong Chrome filepath? Message = Trying to Run Chrome with URL failed for some reason. Wrong Chrome filepath?
@ -263,7 +266,7 @@ NavigateFromBaseURLTo(URL,PageTitle := "TodoDeleteme"){
status := ActivateChromeTab(URLBase) status := ActivateChromeTab(URLBase)
if(Status = "Failed"){ if(Status = "Failed"){
try currentURL := GetCurrentTabURLBase() try currentURL := GetCurrentTabURLBase()
Message = Failed to switch active tab to %URLBase%. Current tab is: %currentURL% Message = Failed to switch active tab to %URLBase%, currently on different site.
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging") SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
CheckForAlerts() CheckForAlerts()

Loading…
Cancel
Save