Merge pull request #139 from sgumpalli/master
Fixed custom locale bug#119
diff --git a/jsonLoader.go b/jsonLoader.go
index cab6ed0..9433f3e 100644
--- a/jsonLoader.go
+++ b/jsonLoader.go
@@ -175,7 +175,7 @@
// must return HTTP Status 200 OK
if resp.StatusCode != http.StatusOK {
- return nil, errors.New(formatErrorDescription(Locale.httpBadStatus(), ErrorDetails{"status": resp.Status}))
+ return nil, errors.New(formatErrorDescription(Locale.HttpBadStatus(), ErrorDetails{"status": resp.Status}))
}
bodyBuff, err := ioutil.ReadAll(resp.Body)
diff --git a/locales.go b/locales.go
index bfb8009..c530952 100644
--- a/locales.go
+++ b/locales.go
@@ -73,7 +73,7 @@
ReferenceMustBeCanonical() string
NotAValidType() string
Duplicated() string
- httpBadStatus() string
+ HttpBadStatus() string
// ErrorFormat
ErrorFormat() string
@@ -256,7 +256,7 @@
return `{{.type}} type is duplicated`
}
-func (l DefaultLocale) httpBadStatus() string {
+func (l DefaultLocale) HttpBadStatus() string {
return `Could not read schema from HTTP, response status is {{.status}}`
}