Skip to content

Commit

Permalink
make erorr more explicit (#515)
Browse files Browse the repository at this point in the history
* make erorr more explicit

* change error message
  • Loading branch information
TusharMohapatra07 authored Oct 8, 2024
1 parent 11702f6 commit 21102b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cmd/push/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func runCommand(opts *pushOptions) func(*cobra.Command, []string) error {
output.Infof("Pushing %s", opts.modelRef.String())
desc, err := PushModel(cmd.Context(), localRepo, remoteRepo, opts)
if err != nil {
return output.Fatalf("Failed to push: %s", err)
return output.Fatalf("Failed to push: %s. Check you have write permissions to the organization and repository you are pushing to.", err)
}
output.Infof("Pushed %s", desc.Digest)
return nil
Expand Down

0 comments on commit 21102b4

Please sign in to comment.