Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rethrow error on pal creation #62

Closed
simonpcouch opened this issue Nov 20, 2024 · 0 comments
Closed

rethrow error on pal creation #62

simonpcouch opened this issue Nov 20, 2024 · 0 comments

Comments

@simonpcouch
Copy link
Owner

Noticed this while reproducing #9 (comment).

The following lines should rethrow the error from elmer:

pal/R/rstudioapi.R

Lines 66 to 70 in 60b279a

pal <- .init_pal(role),
error = function(e) {
rstudioapi::showDialog("Error", "Unable to create a pal. See `?.init_pal()`.")
return(NULL)
}

Much more informative if I run it directly:

pal::.init_pal("code")
Error in `elmer::chat_ollama()`:
! Can't find locally running ollama.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant