Problem: error string are capitalized

Solution: lowercase strings
This commit is contained in:
Peter Stuifzand 2021-11-20 21:12:04 +01:00
parent 637c223f0c
commit e98d9545d0
Signed by: peter
GPG Key ID: 374322D56E5209E8
2 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@ func (cs *charsetISO88591er) ReadByte() (b byte, err error) {
func (cs *charsetISO88591er) Read(p []byte) (int, error) {
// Use ReadByte method.
return 0, errors.New("Use ReadByte()")
return 0, errors.New("use ReadByte()")
}
func isCharsetISO88591(charset string) bool {

View File

@ -303,7 +303,7 @@ type Enclosure struct {
// Get uses http.Get to fetch an enclosure.
func (e *Enclosure) Get() (io.ReadCloser, error) {
if e == nil || e.URL == "" {
return nil, errors.New("No enclosure")
return nil, errors.New("no enclosure")
}
res, err := http.Get(e.URL)
@ -325,7 +325,7 @@ type Image struct {
// Get uses http.Get to fetch an image.
func (i *Image) Get() (io.ReadCloser, error) {
if i == nil || i.URL == "" {
return nil, errors.New("No image")
return nil, errors.New("no image")
}
res, err := http.Get(i.URL)