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
c46165de
Commit
c46165de
authored
Aug 09, 2015
by
Clayton Coleman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extra newlines in error output
StandardErrorMessage does not have a newline by default, other error messages should not end with a newline.
parent
213e7a8a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
helper.go
pkg/client/helper.go
+1
-1
helpers.go
pkg/kubectl/cmd/util/helpers.go
+1
-1
No files found.
pkg/client/helper.go
View file @
c46165de
...
...
@@ -188,7 +188,7 @@ func NegotiateVersion(client *Client, c *Config, version string, clientRegistere
}
apiVersions
,
err
:=
client
.
ServerAPIVersions
()
if
err
!=
nil
{
return
""
,
fmt
.
Errorf
(
"couldn't read version from server: %v
\n
"
,
err
)
return
""
,
fmt
.
Errorf
(
"couldn't read version from server: %v"
,
err
)
}
serverVersions
:=
util
.
StringSet
{}
for
_
,
v
:=
range
apiVersions
.
Versions
{
...
...
pkg/kubectl/cmd/util/helpers.go
View file @
c46165de
...
...
@@ -93,7 +93,7 @@ func checkErr(err error, handleErr func(string)) {
msg
,
ok
:=
StandardErrorMessage
(
err
)
if
!
ok
{
msg
=
fmt
.
Sprintf
(
"error: %s
\n
"
,
err
.
Error
())
msg
=
fmt
.
Sprintf
(
"error: %s"
,
err
.
Error
())
}
handleErr
(
msg
)
}
...
...
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