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
447c3371
Commit
447c3371
authored
Sep 30, 2015
by
tummychow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove glog dependency from fielderrors
parent
bd8ee1c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
fielderrors.go
pkg/util/fielderrors/fielderrors.go
+2
-3
No files found.
pkg/util/fielderrors/fielderrors.go
View file @
447c3371
...
@@ -23,7 +23,6 @@ import (
...
@@ -23,7 +23,6 @@ import (
"k8s.io/kubernetes/pkg/util/errors"
"k8s.io/kubernetes/pkg/util/errors"
"github.com/davecgh/go-spew/spew"
"github.com/davecgh/go-spew/spew"
"github.com/golang/glog"
)
)
// ValidationErrorType is a machine readable value providing more detail about why
// ValidationErrorType is a machine readable value providing more detail about why
...
@@ -74,7 +73,7 @@ func (t ValidationErrorType) String() string {
...
@@ -74,7 +73,7 @@ func (t ValidationErrorType) String() string {
case
ValidationErrorTypeTooLong
:
case
ValidationErrorTypeTooLong
:
return
"too long"
return
"too long"
default
:
default
:
glog
.
Errorf
(
"unrecognized validation type: %#v"
,
t
)
panic
(
fmt
.
Sprintf
(
"unrecognized validation type: %#v"
,
t
)
)
return
""
return
""
}
}
}
}
...
@@ -161,7 +160,7 @@ func (list ValidationErrorList) Prefix(prefix string) ValidationErrorList {
...
@@ -161,7 +160,7 @@ func (list ValidationErrorList) Prefix(prefix string) ValidationErrorList {
}
}
list
[
i
]
=
err
list
[
i
]
=
err
}
else
{
}
else
{
glog
.
Warningf
(
"Programmer error: ValidationErrorList holds non-ValidationError: %#v"
,
list
[
i
]
)
panic
(
fmt
.
Sprintf
(
"Programmer error: ValidationErrorList holds non-ValidationError: %#v"
,
list
[
i
])
)
}
}
}
}
return
list
return
list
...
...
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