mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2026-02-09 09:44:22 +01:00
new: import local file & rm local dir
This commit is contained in:
@@ -38,6 +38,9 @@ enum DockerErrType {
|
||||
invalidVersion,
|
||||
cmdNoPrefix,
|
||||
segmentsNotMatch,
|
||||
parsePsItem,
|
||||
parseImages,
|
||||
parseStats,
|
||||
}
|
||||
|
||||
class DockerErr extends Err<DockerErrType> {
|
||||
|
||||
@@ -80,7 +80,10 @@ class DockerProvider extends BusyProvider {
|
||||
version = _versionReg.firstMatch(verRaw)?.group(2);
|
||||
edition = _editionReg.firstMatch(verRaw)?.group(2);
|
||||
} catch (e) {
|
||||
error = DockerErr(type: DockerErrType.unknown, message: e.toString());
|
||||
error = DockerErr(
|
||||
type: DockerErrType.invalidVersion,
|
||||
message: '$verRaw\n\n$e',
|
||||
);
|
||||
rethrow;
|
||||
}
|
||||
|
||||
@@ -92,7 +95,10 @@ class DockerProvider extends BusyProvider {
|
||||
lines.removeAt(0);
|
||||
items = lines.map((e) => DockerPsItem.fromRawString(e)).toList();
|
||||
} catch (e) {
|
||||
error = DockerErr(type: DockerErrType.unknown, message: e.toString());
|
||||
error = DockerErr(
|
||||
type: DockerErrType.parsePsItem,
|
||||
message: '$psRaw\n\n$e',
|
||||
);
|
||||
rethrow;
|
||||
} finally {
|
||||
setBusyState(false);
|
||||
@@ -106,7 +112,10 @@ class DockerProvider extends BusyProvider {
|
||||
imageLines.removeAt(0);
|
||||
images = imageLines.map((e) => DockerImage.fromRawStr(e)).toList();
|
||||
} catch (e) {
|
||||
error = DockerErr(type: DockerErrType.unknown, message: e.toString());
|
||||
error = DockerErr(
|
||||
type: DockerErrType.parseImages,
|
||||
message: '$imageRaw\n\n$e',
|
||||
);
|
||||
rethrow;
|
||||
} finally {
|
||||
setBusyState(false);
|
||||
@@ -127,7 +136,10 @@ class DockerProvider extends BusyProvider {
|
||||
item.parseStats(statsLine);
|
||||
}
|
||||
} catch (e) {
|
||||
error = DockerErr(type: DockerErrType.unknown, message: e.toString());
|
||||
error = DockerErr(
|
||||
type: DockerErrType.parseStats,
|
||||
message: '$statsRaw\n\n$e',
|
||||
);
|
||||
} finally {
|
||||
setBusyState(false);
|
||||
}
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
class BuildData {
|
||||
static const String name = "ServerBox";
|
||||
static const int build = 414;
|
||||
static const int build = 416;
|
||||
static const String engine = "3.10.6";
|
||||
static const String buildAt = "2023-08-05 12:11:05.935203";
|
||||
static const int modifications = 5;
|
||||
static const String buildAt = "2023-08-05 12:53:08.311867";
|
||||
static const int modifications = 6;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user