branch: elpa/cider commit e906b8619790589184ba20851825c89c9b26f9a2 Author: vemv <v...@users.noreply.github.com> Commit: vemv <v...@users.noreply.github.com>
`cider-sync-request:ns-path`: add a precondition This would have saved me a confusing stacktrace. --- cider-client.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cider-client.el b/cider-client.el index b40bff38de..61c3359337 100644 --- a/cider-client.el +++ b/cider-client.el @@ -747,6 +747,8 @@ The option is kept for backwards compatibility. Note that even when favoring a url, the url itself might be nil, in which case we'll fall back to the resource name." + (unless ns + (error "No ns provided")) (let ((response (cider-nrepl-send-sync-request `("op" "ns-path" "ns" ,ns)))) (nrepl-dbind-response response (path url)