We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a1164f commit 756e44aCopy full SHA for 756e44a
1 file changed
main.go
@@ -118,6 +118,18 @@ func main() {
118
return
119
}
120
121
+ if len(assignments) == 0 {
122
+ noAssignmentMessage := "No assignments found"
123
+ if argCount == 2 {
124
+ fmt.Printf("%s for %s - %s\n", noAssignmentMessage, c.Args()[0], c.Args()[1])
125
+ } else if argCount == 1 {
126
+ fmt.Printf("%s for %s\n", noAssignmentMessage, c.Args()[0])
127
+ } else {
128
+ fmt.Printf("%s\n", noAssignmentMessage)
129
+ }
130
+ return
131
132
+
133
for _, a := range assignments {
134
err := SaveAssignment(config.ExercismDirectory, a)
135
if err != nil {
0 commit comments