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

Improve error messages #184

Open
findepi opened this issue Apr 8, 2024 · 0 comments
Open

Improve error messages #184

findepi opened this issue Apr 8, 2024 · 0 comments

Comments

@findepi
Copy link
Contributor

findepi commented Apr 8, 2024

Sometimes messages returned from jgit are less useful and chained cause is more informative

ex -- Invalid remote: origin (propagated to query failure)

...
Caused by: org.eclipse.jgit.api.errors.InvalidRemoteException: Invalid remote: origin
	at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:246)
	at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:319)
	at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:189)
	at pl.net.was.trino.git.GitRecordSet.getRepo(GitRecordSet.java:115)
	... 34 more
Caused by: org.eclipse.jgit.errors.NoRemoteRepositoryException: /path/to/repo: not found.
	at org.eclipse.jgit.transport.TransportLocal$1.open(TransportLocal.java:100)
	at org.eclipse.jgit.transport.TransportBundleFile$1.open(TransportBundleFile.java:74)
	at org.eclipse.jgit.transport.Transport.open(Transport.java:527)
	at org.eclipse.jgit.transport.Transport.open(Transport.java:402)
	at org.eclipse.jgit.transport.Transport.open(Transport.java:281)
	at org.eclipse.jgit.transport.Transport.open(Transport.java:249)
	at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:217)
	... 37 more

loosely related to #12

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