From b0842f499cf728d81f21ffe652465d5627ca777f Mon Sep 17 00:00:00 2001 From: Zach Klippenstein Date: Thu, 23 Jul 2015 20:51:08 -0700 Subject: [PATCH] Cleaned ErrCode constant definitions. --- util/error.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/util/error.go b/util/error.go index 1d4e2e9..2ddeafc 100644 --- a/util/error.go +++ b/util/error.go @@ -33,19 +33,19 @@ type ErrCode byte const ( AssertionError ErrCode = iota - ParseError ErrCode = iota + ParseError // The server was not available on the requested port. - ServerNotAvailable ErrCode = iota + ServerNotAvailable // General network error communicating with the server. - NetworkError ErrCode = iota + NetworkError // The connection to the server was reset in the middle of an operation. Server probably died. - ConnectionResetError ErrCode = iota + ConnectionResetError // The server returned an error message, but we couldn't parse it. - AdbError ErrCode = iota + AdbError // The server returned a "device not found" error. - DeviceNotFound ErrCode = iota + DeviceNotFound // Tried to perform an operation on a path that doesn't exist on the device. - FileNoExistError ErrCode = iota + FileNoExistError ) func Errorf(code ErrCode, format string, args ...interface{}) error {