Launcher: improve feedback entering invalid hangar URL.
Catch XML validation/parse errors, and mention the possibility that the URL is not correct, in the feedback message.
This commit is contained in:
parent
5ccae24f81
commit
85da09d5d5
2 changed files with 6 additions and 3 deletions
|
@ -325,7 +325,9 @@ CatalogListModel::CatalogStatus CatalogListModel::translateStatusForCatalog(Cata
|
|||
case Delegate::FAIL_NOT_FOUND: return NotFoundOnServer;
|
||||
case Delegate::FAIL_VERSION: return IncompatibleVersion;
|
||||
case Delegate::FAIL_HTTP_FORBIDDEN: return HTTPForbidden;
|
||||
case Delegate::FAIL_VALIDATION: return InvalidData;
|
||||
case Delegate::FAIL_VALIDATION:
|
||||
case Delegate::FAIL_EXTRACT:
|
||||
return InvalidData;
|
||||
default:
|
||||
return UnknownError;
|
||||
}
|
||||
|
|
|
@ -139,8 +139,9 @@ Rectangle {
|
|||
+ "(This is version %1)").arg(_launcher.versionString);
|
||||
|
||||
case FG.CatalogListModel.InvalidData:
|
||||
return qsTr("The requested hangar seems to be invalid (damaged or incomplete). "
|
||||
+ "Please contact the hangar authors, or try again later");
|
||||
return qsTr("The requested URL doesn't contain valid hangar data. "
|
||||
+ "Check you entered a valid hangar URL. If it's correct, "
|
||||
+ "please contact the hangar authors, or try again later." );
|
||||
|
||||
default:
|
||||
return qsTr("Unknown error: " + _addOns.catalogs.statusOfAddingCatalog);
|
||||
|
|
Loading…
Add table
Reference in a new issue