Skip to content

Commit

Permalink
fix error in routes
Browse files Browse the repository at this point in the history
  • Loading branch information
bpeng committed May 9, 2024
1 parent ca2eb21 commit 95753b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/fdsn-ws/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ type fdsnError struct {
timestamp time.Time
}

func fdsnErrorHandler(err error, h http.Header, b *bytes.Buffer) error {
func fdsnErrorHandler(err error, h http.Header, b *bytes.Buffer, nounce string) error {
switch e := err.(type) {
case fdsnError:
var ver string
Expand Down Expand Up @@ -109,5 +109,5 @@ func fdsnErrorHandler(err error, h http.Header, b *bytes.Buffer) error {
return nil
}

return weft.TextError(err, h, b)
return weft.TextError(err, h, b, nounce)
}

0 comments on commit 95753b1

Please sign in to comment.