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

Inacurate error message #7

Open
nil0x42 opened this issue Nov 20, 2019 · 0 comments
Open

Inacurate error message #7

nil0x42 opened this issue Nov 20, 2019 · 0 comments

Comments

@nil0x42
Copy link

nil0x42 commented Nov 20, 2019

catch (e) {
console.log("Sending request to trilium failed", e);
toast('Your request failed because we could not contact Trilium instance. Please make sure Trilium is running and is accessible.');
return null;
}

Any exception is catched, and returns this message about "failing to contact trilium instance".
So any bug or issue is mistaken by the user as a network error.
A consequence of this is loosing potential people posting issues here, and making debug more difficult.
An easy way to access e error should be easily viewable, in order to ease debugging and posting of issues.

I personally just has this kind of issue, and not being very aware of how javascript works, i'm not even capable of finding where the output of 'console.log()' is.
(i was trying to send a page to trilium from a specific site and it doesn't work, while still working on other sites)

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