Skip to content

Commit

Permalink
Which method wasn't found would be helpful
Browse files Browse the repository at this point in the history
  • Loading branch information
netmute committed Dec 22, 2024
1 parent 6d8408a commit aec258e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,8 @@ func handleRequest(server *Server, req RPCRequest) {
handleDocumentSymbol(server, req)
default:
// Method not found
sendError(req.ID, -32601, "Method not found", nil)
message := fmt.Sprintf("Method not found: %s", req.Method)
sendError(req.ID, -32601, message, nil)
}
}

Expand Down

0 comments on commit aec258e

Please sign in to comment.