aboutsummaryrefslogtreecommitdiff
path: root/util/url_generator.go
diff options
context:
space:
mode:
Diffstat (limited to 'util/url_generator.go')
-rw-r--r--util/url_generator.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/url_generator.go b/util/url_generator.go
index e6799b5..d0f5eea 100644
--- a/util/url_generator.go
+++ b/util/url_generator.go
@@ -17,13 +17,13 @@
package util
import (
- "errors"
+ e "github.com/MikunoNaka/MAL2Go/errhandlers"
)
func UrlGenerator(baseUrl string, names []string, values [][]string, isPrimary bool) (string, error) {
// length of names and values should be same
if cap(names) != cap(values) {
- return "", errors.New("util.UrlGenerator: Error: Length of names and values don't match.")
+ return "", e.URLNameValueError
}
var fields string