Skip to content

Commit e7402b4

Browse files
committed
Solution message when no forks
1 parent dfaaeab commit e7402b4

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

main.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,13 @@ func run(owner, name string) error {
5050
if err != nil {
5151
return err
5252
}
53+
if len(repos) == 0 {
54+
prep := "with"
55+
if *classroom {
56+
prep = "without"
57+
}
58+
fmt.Fprintf(os.Stderr, "No entries. Try again %s the --classroom option.\n", prep)
59+
}
5360
var entries []repoEntry
5461
for _, repo := range repos {
5562
entries = append(entries, repoEntry{Dir: repoAuthor(repo, name), URL: repo.URL})

0 commit comments

Comments
 (0)