fix: CloudService silent error → logging, Status zeigt Token-Fehler an
This commit is contained in:
@@ -89,8 +89,8 @@ class _CloudScreenState extends State<CloudScreen> {
|
||||
if (!mounted) return;
|
||||
setState(() {
|
||||
_serverCount = st?['total'] ?? 0;
|
||||
_status = st != null ? 'Verbunden' : 'Keine Verbindung';
|
||||
_statusOk = st != null;
|
||||
_status = st != null ? 'Verbunden' : 'Keine Verbindung (Token?)';
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -98,7 +98,10 @@ class CloudService {
|
||||
.get(Uri.parse('$_base$path'), headers: _authHeader)
|
||||
.timeout(const Duration(seconds: 10));
|
||||
if (r.statusCode == 200) return jsonDecode(r.body);
|
||||
} catch (_) {}
|
||||
MeloLogger().fehler('cloud_get', '${r.statusCode} $path');
|
||||
} catch (e) {
|
||||
MeloLogger().fehler('cloud_get_error', '$path: $e');
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user