Improve error messaging for typos

Open
#112 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
clojure, git
Domain
cli

Research direction

Reproduce the failure with bbin install io.github.rads/doesnt-exist and inspect the install path that surfaces the raw Git+SSH error. Compare the related issue 111 for context. Done means a higher-level bbin error explains that the repository was not found without presenting it as a Git problem.

Written by the indexing model from the issue text.

Description

Attempting to install a repo that doesn't exist results in a raw Git+SSH error message. This can be confusing because if the repo is found it would otherwise be installed with Git+HTTP instead of Git+SSH. It would be helpful to report a higher-level bbin error that clarifies it's not actually a Git issue. See also: https://github.com/babashka/bbin/issues/111

$ bbin install io.github.rads/doesnt-exist

Starting install...
----- Error --------------------------------------------------------------------
Type:     clojure.lang.ExceptionInfo
Message:  Unable to clone /Users/rads/.gitlibs/_repos/ssh/github.com/rads/doesnt-exist
ERROR: Repository not found.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Dominant language
Clojure
Stars
195
Forks
15
Avg merge
1m
Merged PRs (30d)
2

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from babashka/bbin

All issues in babashka/bbin

Similar issues

More Clojure issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.