This repository has been archived on 2025-03-30. You can view files and clone it, but cannot push or open issues or pull requests.
bactdb/api/helpers.go
Matthew Dillon efb0cc13fa Golint
2015-10-05 10:34:21 -07:00

10 lines
203 B
Go

package api
import "github.com/thermokarst/bactdb/types"
func newJSONError(err error, status int) *types.AppError {
return &types.AppError{
Error: types.ErrorJSON{Err: err},
Status: status,
}
}