Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
ada14564
Unverified
Commit
ada14564
authored
Jul 07, 2021
by
Chris Kim
Committed by
GitHub
Jul 07, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update etcd snapshot error message to be more informative when etcd database is not found (#3568)
Signed-off-by:
Chris Kim
<
oats87g@gmail.com
>
parent
a62d1439
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
etcd_snapshot.go
pkg/cli/etcdsnapshot/etcd_snapshot.go
+1
-1
No files found.
pkg/cli/etcdsnapshot/etcd_snapshot.go
View file @
ada14564
...
@@ -89,7 +89,7 @@ func run(app *cli.Context, cfg *cmds.Server) error {
...
@@ -89,7 +89,7 @@ func run(app *cli.Context, cfg *cmds.Server) error {
return
err
return
err
}
}
if
!
initialized
{
if
!
initialized
{
return
errors
.
New
(
"managed etcd database has not been initialized"
)
return
fmt
.
Errorf
(
"etcd database not found in %s"
,
dataDir
)
}
}
cluster
:=
cluster
.
New
(
&
serverConfig
.
ControlConfig
)
cluster
:=
cluster
.
New
(
&
serverConfig
.
ControlConfig
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment