Switch to errors.New

Signed-off-by: Eric Sage <eric.david.sage@gmail.com>
This commit is contained in:
Eric Sage 2015-07-13 20:09:59 -04:00
parent b75b5d618c
commit 6410da8f34
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
package commands
import (
"errors"
"fmt"
"os"
"strings"
@ -88,7 +89,7 @@ func parseFilters(filters []string) (FilterOptions, error) {
for _, f := range filters {
kv := strings.SplitN(f, "=", 2)
if len(kv) != 2 {
return options, fmt.Errorf("Unsupported filter syntax.")
return options, errors.New("Unsupported filter syntax.")
}
key, value := kv[0], kv[1]