Skip to content
This repository has been archived by the owner on Jul 30, 2020. It is now read-only.

Commit

Permalink
rget: fail server with more helpful info
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
  • Loading branch information
vbatts committed Jul 25, 2019
1 parent cec0cf0 commit 95c8fd5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rget/cmd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ func (r sumRepo) handler(resp http.ResponseWriter, req *http.Request) {
}

func server(cmd *cobra.Command, args []string) {
if len(args) < 2 {
fmt.Printf("missing required arguments (public git URL, private git URL)\n")
os.Exit(1)
}
pubgit := args[0]
privgit := args[1]

Expand Down

0 comments on commit 95c8fd5

Please sign in to comment.