mirror of
https://github.com/kopia/kopia.git
synced 2026-01-25 06:48:48 -05:00
15 lines
210 B
Go
15 lines
210 B
Go
package server
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
type apiError struct {
|
|
code int
|
|
message string
|
|
}
|
|
|
|
func internalServerError(err error) *apiError {
|
|
return &apiError{500, fmt.Sprintf("internal server error: %v", err)}
|
|
}
|