mirror of https://github.com/docker/docs.git
Switch to errors.New
Signed-off-by: Eric Sage <eric.david.sage@gmail.com>
This commit is contained in:
parent
b75b5d618c
commit
6410da8f34
|
@ -1,6 +1,7 @@
|
||||||
package commands
|
package commands
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
@ -88,7 +89,7 @@ func parseFilters(filters []string) (FilterOptions, error) {
|
||||||
for _, f := range filters {
|
for _, f := range filters {
|
||||||
kv := strings.SplitN(f, "=", 2)
|
kv := strings.SplitN(f, "=", 2)
|
||||||
if len(kv) != 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]
|
key, value := kv[0], kv[1]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue