Skip to content

Commit

Permalink
lxd/response: Remove dependency on lxd/db from lxd/response.
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Laing <[email protected]>
  • Loading branch information
markylaing committed Apr 3, 2024
1 parent f41ae8f commit b7138ba
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lxd/response/smart.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b7138ba

Please sign in to comment.