Skip to content

Commit

Permalink
Merge pull request #7 from ThreeDotsLabs/solutions-info
Browse files Browse the repository at this point in the history
Add a hint about example solution
  • Loading branch information
m110 authored Aug 30, 2022
2 parents 30d0c55 + ac1ffab commit cbe842b
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions trainings/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,18 +196,15 @@ func (h *Handlers) runExercise(ctx context.Context, trainingRootFs *afero.BasePa
if response.Finished {
fmt.Println("--------")

var msg string

if response.Successful {
msg = color.GreenString("SUCCESS")
fmt.Println(color.GreenString("SUCCESS"))
fmt.Println("\nYou can now see an example solution on the website.")
successful = true
finished = true
} else {
msg = color.RedString("FAIL")
fmt.Println(color.RedString("FAIL"))
finished = true
}

fmt.Println(msg)
}

if verificationID == "" && response.VerificationId != "" {
Expand Down

0 comments on commit cbe842b

Please sign in to comment.