From 24b0a634d8b90bb1e4bcc5a7df14a602ae1dc158 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Nu=C8=9Biu?= Date: Fri, 20 Oct 2017 18:25:47 +0300 Subject: [PATCH] Adding UknownError --- server/server/errors.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/server/errors.go b/server/server/errors.go index 2e70b37..958a230 100644 --- a/server/server/errors.go +++ b/server/server/errors.go @@ -12,7 +12,9 @@ type InputError struct { func (e *InputError) Error() string { return "Error: " + e.Op + ": " + e.Err.Error() } +// Input Errors var ( + UnknownError = errors.New("Unknown Error.") InvalidCommand = errors.New("Invalid command.") TooManyArguments = errors.New("Too many arguments.") TooFewArguments = errors.New("Too few arguments.")