File tree Expand file tree Collapse file tree 9 files changed +26
-10
lines changed Expand file tree Collapse file tree 9 files changed +26
-10
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ enum Error {
13
13
#[ snafu( display( "Failed to find env var" ) ) ]
14
14
EnvVarNotFound { source : VarError } ,
15
15
16
- #[ snafu( display( "Unsupported GOARCH: {arch}" ) ) ]
16
+ #[ snafu( display( "Unsupported GOARCH ( {arch}) " ) ) ]
17
17
UnsupportedGoArch { arch : String } ,
18
18
19
- #[ snafu( display( "Unsupported GOOS: {os}" ) ) ]
19
+ #[ snafu( display( "Unsupported GOOS ( {os}) " ) ) ]
20
20
UnsupportedGoOs { os : String } ,
21
21
}
22
22
Original file line number Diff line number Diff line change @@ -30,10 +30,10 @@ pub enum Error {
30
30
#[ snafu( display( "failed to run kind command" ) ) ]
31
31
CommandFailedToRun { source : std:: io:: Error } ,
32
32
33
- #[ snafu( display( "kind command executed, but returned error: {error}" ) ) ]
33
+ #[ snafu( display( "failed to successfuly run kind command ( {error}) " ) ) ]
34
34
CommandErroredOut { error : String } ,
35
35
36
- #[ snafu( display( "missing required binary: {binary}" ) ) ]
36
+ #[ snafu( display( "missing required binary {binary:? }" ) ) ]
37
37
MissingBinary { binary : String } ,
38
38
39
39
#[ snafu( display( "failed to determine if Docker is running" ) ) ]
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ pub enum Error {
17
17
cluster_name : String ,
18
18
} ,
19
19
20
- #[ snafu( display( "missing required binary: {binary}" ) ) ]
20
+ #[ snafu( display( "missing required binary {binary:? }" ) ) ]
21
21
MissingBinary { binary : String } ,
22
22
23
23
#[ snafu( display( "failed to execute Minikube command" ) ) ]
Original file line number Diff line number Diff line change @@ -63,13 +63,13 @@ pub enum Error {
63
63
#[ snafu( display( "failed to add Helm repo ({error})" ) ) ]
64
64
AddRepo { error : String } ,
65
65
66
- #[ snafu( display( "failed to list Helm releases: {error}" ) ) ]
66
+ #[ snafu( display( "failed to list Helm releases ( {error}) " ) ) ]
67
67
ListReleases { error : String } ,
68
68
69
69
#[ snafu( display( "failed to install Helm release" ) ) ]
70
70
InstallRelease { source : InstallReleaseError } ,
71
71
72
- #[ snafu( display( "failed to uninstall Helm release: {error}" ) ) ]
72
+ #[ snafu( display( "failed to uninstall Helm release ( {error}) " ) ) ]
73
73
UninstallRelease { error : String } ,
74
74
}
75
75
@@ -93,7 +93,7 @@ pub enum InstallReleaseError {
93
93
/// This error indicates that there was an Helm error. The error it self
94
94
/// is not typed, as the error is a plain string coming directly from the
95
95
/// FFI bindings.
96
- #[ snafu( display( "helm error: {error}" ) ) ]
96
+ #[ snafu( display( "helm FFI library call failed ( {error}) " ) ) ]
97
97
HelmWrapper { error : String } ,
98
98
}
99
99
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ pub enum SpecParseError {
43
43
#[ snafu( display( "empty operator spec input" ) ) ]
44
44
EmptyInput ,
45
45
46
- #[ snafu( display( "invalid operator name: ' {name}' " ) ) ]
46
+ #[ snafu( display( "invalid operator name {name:?} " ) ) ]
47
47
InvalidName { name : String } ,
48
48
}
49
49
Original file line number Diff line number Diff line change @@ -50,6 +50,13 @@ pub enum Error {
50
50
#[ snafu( display( "failed to deploy manifest because type of object {object:?} is not set" ) ) ]
51
51
ObjectType { object : DynamicObject } ,
52
52
53
+ #[ snafu( display( "failed to deploy manifest because GVK {group}/{kind}@{version} cannot be resolved" ,
54
+ group = gvk. group,
55
+ version = gvk. version,
56
+ kind = gvk. kind
57
+ ) ) ]
58
+ DiscoveryResolve { gvk : GroupVersionKind } ,
59
+
53
60
#[ snafu( display( "failed to convert byte string into UTF-8 string" ) ) ]
54
61
ByteStringConvert { source : FromUtf8Error } ,
55
62
Original file line number Diff line number Diff line change @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
4
4
5
5
## [ Unreleased]
6
6
7
+ ### Fixed
8
+
9
+ - Remove colons from error messages, because the snafu report removes all
10
+ content after the colon which results in loss of detail ([ #300 ] ).
11
+
12
+ [ #300 ] : https://github.com/stackabletech/stackable-cockpit/pull/300
13
+
7
14
## [ 24.3.4] - 2024-05-28
8
15
9
16
### Fixed
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ const DOCS_BASE_PATH: &str = "docs/modules/stackablectl/partials/commands";
11
11
12
12
#[ derive( Debug , Snafu ) ]
13
13
pub enum GenDocsError {
14
- #[ snafu( display( "No such subcommand: {name} " ) ) ]
14
+ #[ snafu( display( "subcommand {name:?} not found " ) ) ]
15
15
NoSuchSubcommand { name : String } ,
16
16
17
17
#[ snafu( display( "io error" ) ) ]
You can’t perform that action at this time.
0 commit comments