Skip to content

Commit

Permalink
safer error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
mlvzk committed May 21, 2019
1 parent 257c5bf commit 787c635
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/piko/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func main() {
for _, target := range targets {
if target == "" {
log.Println("Target can't be empty")
break
continue
}

var foundAnyService bool
Expand Down Expand Up @@ -158,7 +158,7 @@ func main() {
break
}
if !foundAnyService {
log.Fatalf("Couldn't find a valid service for url '%s'. Your link is probably unsupported.\n", target)
log.Printf("Error: Couldn't find a valid service for url '%s'. Your link is probably unsupported.\n", target)
}
}
}
Expand Down

0 comments on commit 787c635

Please sign in to comment.