File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -245,13 +245,10 @@ type LabeledError interface {
245245// interface should not be used in production.
246246type ServerError interface {
247247 LabeledError
248-
249248 // HasErrorCode returns true if the error has the specified code.
250249 HasErrorCode (int ) bool
251-
252250 // HasErrorMessage returns true if the error contains the specified message.
253251 HasErrorMessage (string ) bool
254-
255252 // HasErrorCodeWithMessage returns true if any of the contained errors have the specified code and message.
256253 HasErrorCodeWithMessage (int , string ) bool
257254
@@ -307,7 +304,6 @@ func (e CommandError) HasErrorCode(code int) bool {
307304
308305// ErrorCodes returns a list of error codes returned by the server.
309306func (e CommandError ) ErrorCodes () []int {
310- fmt .Println (e .Code )
311307 return []int {int (e .Code )}
312308}
313309
You can’t perform that action at this time.
0 commit comments