Skip to content

Commit fa43a7b

Browse files
authored
add file status (#9316)
1 parent db48e08 commit fa43a7b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Modules/Main.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1575,14 +1575,14 @@ end
15751575
-- Help button opens a URL to PoB's GitHub wiki.
15761576
function main:OpenCloudErrorPopup(fileName)
15771577
local provider, _, status = GetCloudProvider(fileName)
1578-
ConPrintf('Error: file offline "%s" provider: "%s" status: "%s"',
1579-
fileName or "?", provider, status)
1578+
ConPrintf('^1Error: file offline "%s" provider: "%s" status: "%s"', fileName or "?", provider, status)
15801579
fileName = fileName and "\n\n^8'"..fileName.."'" or ""
1581-
local pobVersion = "^8v"..launch.versionNumber..(launch.versionBranch == "dev" and " (Dev)" or launch.versionBranch == "beta" and " (Beta)" or "")
1582-
local title = " Error "
1580+
local version = "^8v"..launch.versionNumber..(launch.versionBranch and " "..launch.versionBranch or "")..(launch.devMode and " (dev)" or "")
1581+
local title = " ^1Error "
15831582
provider = provider or "your cloud provider"
1584-
local msg = "\nCannot read file.\n\nMake sure "..provider.." is running then restart "..APP_NAME.." and try again."..
1585-
fileName.."\n\n"..pobVersion
1583+
local statusText = tostring(status) or "nil"
1584+
local msg = "\n^7Cannot read file.\n\nMake sure "..provider.." is running then restart "..APP_NAME.." and try again."..
1585+
fileName.."\nstatus: "..statusText.."\n\n"..version
15861586
local url = "https://github.com/PathOfBuildingCommunity/PathOfBuilding/wiki/CloudError"
15871587
local controls = { }
15881588
local numMsgLines = 0

0 commit comments

Comments
 (0)