Use logging from app sdk in the resource mod (#103281)
* Use logging from app sdk in the resource mod * make update-workspace * Use app-sdk logging in SQL backend * Use grafana-app logging in tests * make update-workspace * make update-workspace * make update-workspace * Use default logging * Remove dependency on grafana/grafana * Fix imports
This commit is contained in:
@@ -18,6 +18,17 @@ var (
|
||||
ErrNotImplementedYet = errors.New("not implemented yet")
|
||||
)
|
||||
|
||||
var (
|
||||
ErrResourceAlreadyExists error = &apierrors.StatusError{
|
||||
ErrStatus: metav1.Status{
|
||||
Status: metav1.StatusFailure,
|
||||
Reason: metav1.StatusReasonAlreadyExists,
|
||||
Message: "the resource already exists",
|
||||
Code: http.StatusConflict,
|
||||
},
|
||||
}
|
||||
)
|
||||
|
||||
func NewBadRequestError(msg string) *ErrorResult {
|
||||
return &ErrorResult{
|
||||
Message: msg,
|
||||
|
||||
Reference in New Issue
Block a user