Navigator.of(context).pop(client);
} on proxclient.ProxmoxApiException catch (e) {
print(e);
- showDialog(
- context: context,
- builder: (context) => ProxmoxApiErrorDialog(
- exception: e,
- ),
- );
+ if (e.message.contains('No ticket')) {
+ showDialog(
+ context: context,
+ builder: (context) => AlertDialog(
+ title: Text('Version Error'),
+ content: Text(
+ 'Proxmox VE version not supported, please update your instance to use this app.'),
+ actions: [
+ FlatButton(
+ onPressed: () => Navigator.of(context).pop(),
+ child: Text('Close'),
+ ),
+ ],
+ ),
+ );
+ } else {
+ showDialog(
+ context: context,
+ builder: (context) => ProxmoxApiErrorDialog(
+ exception: e,
+ ),
+ );
+ }
} catch (e, trace) {
print(e);
print(trace);
response =
await proxclient.accessDomains(apiBaseUrl, settings.sslValidation);
} on proxclient.ProxmoxApiException catch (e) {
- print(e);
showDialog(
context: context,
builder: (context) => ProxmoxApiErrorDialog(