lakeFS icon indicating copy to clipboard operation
lakeFS copied to clipboard

Improved Error Reporting for `lakectl local clone`

Open farhanhubble opened this issue 1 year ago • 0 comments

Lakectl error reporting for the clone command requires more verbosity.

Current Behavior: lakectl local clone lakefs://abc.dev.xyz.com/doclake/main results in the error message path URI contains invalid repository name (repo=[abc.dev.xyz.com](http://abc.dev.xyz.com/)), although the repo URL exists. The issue here is that clone expects a repository path, like lakefs://doclake/main which is relative to a server URL that is stored in lakefs config or passed with --base-uri.

Desired Behavior: The error message should be more informative. Perhaps include the full URI that lakefs internally constructs from the URI passes to clone and the server URL. Alternatively, it can spit out the schema for the expected URI along with an example or two.

farhanhubble avatar Sep 09 '24 04:09 farhanhubble