Skip to content

Commit 22a9bce

Browse files
committed
Add status number to cloud-error popup
1 parent 2fb7045 commit 22a9bce

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/Modules/Main.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1568,14 +1568,14 @@ end
15681568
-- Help button opens a URL to PoB's GitHub wiki.
15691569
function main:OpenCloudErrorPopup(fileName)
15701570
local provider, _, status = GetCloudProvider(fileName)
1571-
ConPrintf('Error: file offline "%s" provider: "%s" status: "%s"',
1572-
fileName or "?", provider, status)
1571+
ConPrintf('^1Error: file offline "%s" provider: "%s" status: "%s"', fileName or "?", provider, status)
15731572
fileName = fileName and "\n\n^8'"..fileName.."'" or ""
1574-
local pobVersion = "^8v"..launch.versionNumber..(launch.versionBranch == "dev" and " (Dev)" or launch.versionBranch == "beta" and " (Beta)" or "")
1575-
local title = " Error "
1573+
local version = "^8v"..launch.versionNumber..(launch.versionBranch and " "..launch.versionBranch or "")..(launch.devMode and " (dev)" or "")
1574+
local title = " ^1Error "
15761575
provider = provider or "your cloud provider"
1577-
local msg = "\nCannot read file.\n\nMake sure "..provider.." is running then restart "..APP_NAME.." and try again."..
1578-
fileName.."\n\n"..pobVersion
1576+
local statusText = tostring(status) or "nil"
1577+
local msg = "\n^7Cannot read file.\n\nMake sure "..provider.." is running then restart "..APP_NAME.." and try again."..
1578+
fileName.."\nstatus: "..statusText.."\n\n"..version
15791579
local url = "https://github.com/PathOfBuildingCommunity/PathOfBuilding/wiki/CloudError"
15801580
local controls = { }
15811581
local numMsgLines = 0

0 commit comments

Comments
 (0)