diff --git a/scope.go b/scope.go index 8549cce16d8717dcb92839da77bbb12d6c4cac6a..8480e0569397ef22f59c3a47ab8b810a17422f33 100644 --- a/scope.go +++ b/scope.go @@ -1,7 +1,7 @@ package spectre import ( - "fmt" + "errors" "strings" ) @@ -41,7 +41,7 @@ return Identification, nil case "recovery", "r": return Recovery, nil default: - return "", fmt.Errorf("unknown Scope %q; available [authentication, identification, recovery]", s) + return "", errors.New("unknown Scope") } } diff --git a/template.go b/template.go index a0b4eb9413d7edd9701c42f441e6bc0c31596ede..5fb3ca2787aefe4d555616eef98e939582178659 100644 --- a/template.go +++ b/template.go @@ -1,7 +1,7 @@ package spectre import ( - "fmt" + "errors" "strings" ) @@ -39,7 +39,7 @@ return Phrase, nil case "basic": return Basic, nil default: - return "", fmt.Errorf("unknown Template %q; available [maximum, long, medium, short, pin, name, phrase, basic]", s) + return "", errors.New("unknown Template") } }