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) {
|
switch (logsNotifier.logsResult) {
|
||||||
Ok<String>(:var value) => value.trim(),
|
Ok<String>(:var value) => value.trim(),
|
||||||
Error<String>(:var error) => error is LogsNotFoundException
|
Error<String>(:var error) => error is LogsNotFoundException
|
||||||
? "No logs file found."
|
? error.error()
|
||||||
: Utils.popError(context, "Error while reading logs.", error.toString()),
|
: Utils.popError(context, "Error while reading logs.", error.toString()),
|
||||||
null => "",
|
null => "",
|
||||||
},
|
},
|
||||||
|
|
|
@ -4,7 +4,7 @@ import 'package:flutter/widgets.dart';
|
||||||
import 'package:mobile_nebula/services/result.dart';
|
import 'package:mobile_nebula/services/result.dart';
|
||||||
|
|
||||||
class LogsNotFoundException implements Exception {
|
class LogsNotFoundException implements Exception {
|
||||||
String error() => 'No logs file found';
|
String error() => 'No logs found. Has the site been started?';
|
||||||
}
|
}
|
||||||
|
|
||||||
class LogsNotifier extends ChangeNotifier {
|
class LogsNotifier extends ChangeNotifier {
|
||||||
|
|
Loading…
Add table
Reference in a new issue