Skip to content

Commit 19a7a5b

Browse files
committed
fix: missing version on SketchLibraryRemove call
1 parent 82aed98 commit 19a7a5b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

internal/api/handlers/app_sketch_libs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func HandleSketchRemoveLibrary(idProvider *app.IDProvider) http.HandlerFunc {
9393
// Get query param addDeps (default false)
9494
removeDeps, _ := strconv.ParseBool(r.URL.Query().Get("remove_deps"))
9595
if removedLibs, err := orchestrator.RemoveSketchLibrary(r.Context(), app, libRef, removeDeps); err != nil {
96-
render.EncodeResponse(w, http.StatusInternalServerError, models.ErrorResponse{Details: "unable to remove sketch library"})
96+
render.EncodeResponse(w, http.StatusInternalServerError, models.ErrorResponse{Details: "unable to remove sketch library: " + err.Error()})
9797
return
9898
} else {
9999
render.EncodeResponse(w, http.StatusOK, SketchRemoveLibraryResponse{

internal/orchestrator/sketch_libs.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ func RemoveSketchLibrary(ctx context.Context, app app.ArduinoApp, libRef Library
8585
Library: &rpc.ProfileLibraryReference{
8686
Library: &rpc.ProfileLibraryReference_IndexLibrary_{
8787
IndexLibrary: &rpc.ProfileLibraryReference_IndexLibrary{
88-
Name: libRef.Name,
88+
Name: libRef.Name,
89+
Version: libRef.Version,
8990
},
9091
},
9192
},

0 commit comments

Comments
 (0)