mirror of
https://github.com/DefinedNet/mobile_nebula.git
synced 2025-09-07 19:46:06 +00:00
Update for PR feedback
This commit is contained in:
parent
d2ac2275e8
commit
1e6a57b266
2 changed files with 2 additions and 2 deletions
|
@ -68,7 +68,7 @@ class _SiteLogsScreenState extends State<SiteLogsScreen> {
|
|||
switch (logsNotifier.logsResult) {
|
||||
Ok<String>(:var value) => value.trim(),
|
||||
Error<String>(:var error) => error is LogsNotFoundException
|
||||
? "No logs file found."
|
||||
? error.error()
|
||||
: Utils.popError(context, "Error while reading logs.", error.toString()),
|
||||
null => "",
|
||||
},
|
||||
|
|
|
@ -4,7 +4,7 @@ import 'package:flutter/widgets.dart';
|
|||
import 'package:mobile_nebula/services/result.dart';
|
||||
|
||||
class LogsNotFoundException implements Exception {
|
||||
String error() => 'No logs file found';
|
||||
String error() => 'No logs found. Has the site been started?';
|
||||
}
|
||||
|
||||
class LogsNotifier extends ChangeNotifier {
|
||||
|
|
Loading…
Add table
Reference in a new issue