Skip to content

Commit fe79d41

Browse files
committed
do not serialize APIError
1 parent 602adc3 commit fe79d41

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

libs/testserver/server.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import (
1414
"github.com/gorilla/mux"
1515

1616
"github.com/databricks/cli/internal/testutil"
17-
"github.com/databricks/databricks-sdk-go/apierr"
1817
)
1918

2019
type Server struct {
@@ -213,8 +212,8 @@ Response.Body = '<response body here>'
213212
w.Header().Set("Content-Type", "application/json")
214213
w.WriteHeader(http.StatusNotImplemented)
215214

216-
resp := apierr.APIError{
217-
Message: "No stub found for pattern: " + pattern,
215+
resp := map[string]string{
216+
"message": "No stub found for pattern: " + pattern,
218217
}
219218

220219
respBytes, err := json.Marshal(resp)

0 commit comments

Comments
 (0)