Skip to content

Commit

Permalink
chore: Error messages more apt for self-hosted tsh
Browse files Browse the repository at this point in the history
  • Loading branch information
WillFantom committed Sep 21, 2023
1 parent 1f9db34 commit 861d55f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/sshare/sshare.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ var (
Long: `Share your public SSH keys found in your agent via curl-able transfer.sh links.`,
PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
if transferDays <= 0 {
ui.Errorln("Uploaded content must be visible on transfer.sh for at least 1 day", true)
ui.Errorln("Uploaded content must be visible on a transfer.sh instance for at least 1 day", true)
}
if transferDownloads <= 0 {
ui.Errorln("Uploaded content must be downloadable via transfer.sh for at least 1 time", true)
ui.Errorln("Uploaded content must be downloadable via a transfer.sh instance at least 1 time", true)
}
if err := transfer.SetTransferShURL(tshInstanceURL); err != nil {
ui.Errorln("Transfer.sh URL is not valid: "+err.Error(), true)
Expand Down

0 comments on commit 861d55f

Please sign in to comment.