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 <mark.laing@canonical.com>
  • Loading branch information
markylaing committed Apr 3, 2024
1 parent 0196303 commit df393a8
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 df393a8

Please sign in to comment.