mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 12:35:43 +08:00
Improved error message when bootsrap file URL is not reachable
based on slack discussion during move of "shared" directory
This commit is contained in:
@@ -244,8 +244,8 @@ namespace BlackCore
|
|||||||
CSetupReader::BootstrapMode CSetupReader::stringToEnum(const QString &s)
|
CSetupReader::BootstrapMode CSetupReader::stringToEnum(const QString &s)
|
||||||
{
|
{
|
||||||
const QString bsm(s.toLower().trimmed());
|
const QString bsm(s.toLower().trimmed());
|
||||||
if (bsm.startsWith("expl")) return Explicit;
|
if (bsm.startsWith("expl")) { return Explicit; }
|
||||||
if (bsm.startsWith("cache")) return CacheOnly;
|
if (bsm.startsWith("cache")) { return CacheOnly; }
|
||||||
return Implicit;
|
return Implicit;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -475,9 +475,13 @@ namespace BlackCore
|
|||||||
}
|
}
|
||||||
else if (!available)
|
else if (!available)
|
||||||
{
|
{
|
||||||
msgs.push_back(CStatusMessage(this, CStatusMessage::SeverityError, "Setup not available"));
|
|
||||||
}
|
|
||||||
|
|
||||||
|
msgs.push_back(CStatusMessage(this, CStatusMessage::SeverityError, "Setup not available"));
|
||||||
|
if (this->m_bootstrapMode == Explicit)
|
||||||
|
{
|
||||||
|
msgs.push_back(CStatusMessage(this, CStatusMessage::SeverityError, "Mode is 'explicit', likely URL '" + this->m_bootstrapUrlFileValue + "' is not reachable"));
|
||||||
|
}
|
||||||
|
}
|
||||||
this->m_setupAvailable = available;
|
this->m_setupAvailable = available;
|
||||||
emit setupAvailable(available);
|
emit setupAvailable(available);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user