From df393a88b5d58109490d21b597e36c7c246a5b1c Mon Sep 17 00:00:00 2001 From: Mark Laing Date: Wed, 3 Apr 2024 10:31:21 +0100 Subject: [PATCH] lxd/response: Remove dependency on `lxd/db` from `lxd/response`. Signed-off-by: Mark Laing --- lxd/response/smart.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/lxd/response/smart.go b/lxd/response/smart.go index 554d08bd45de..3e6cbd0c2f14 100644 --- a/lxd/response/smart.go +++ b/lxd/response/smart.go @@ -6,14 +6,12 @@ import ( "net/http" "os" - "github.com/canonical/lxd/lxd/db" "github.com/canonical/lxd/shared/api" ) var httpResponseErrors = map[int][]error{ http.StatusNotFound: {os.ErrNotExist, sql.ErrNoRows}, http.StatusForbidden: {os.ErrPermission}, - http.StatusConflict: {db.ErrAlreadyDefined}, } // SmartError returns the right error message based on err.