mirror of
https://github.com/Xevion/banner.git
synced 2025-12-11 10:06:36 -06:00
refactor: rearrange & rename files, fix meeting times response decode
This commit is contained in:
12
internal/errors.go
Normal file
12
internal/errors.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package internal
|
||||
|
||||
import "fmt"
|
||||
|
||||
type UnexpectedContentTypeError struct {
|
||||
Expected string
|
||||
Actual string
|
||||
}
|
||||
|
||||
func (e *UnexpectedContentTypeError) Error() string {
|
||||
return fmt.Sprintf("Expected content type '%s', received '%s'", e.Expected, e.Actual)
|
||||
}
|
||||
Reference in New Issue
Block a user