1
0
mirror of https://github.com/docker/docs.git synced 2026-11-05 00:14:17 +03:00

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

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]