Skip to content

Commit

Permalink
Better error responses from submit command
Browse files Browse the repository at this point in the history
  • Loading branch information
DaltonSW committed Aug 11, 2024
1 parent 7671a69 commit ef5e791
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cmd/aocli/aocli.go
Original file line number Diff line number Diff line change
Expand Up @@ -322,11 +322,10 @@ func submit(args []string, user *resources.User) {
fmt.Println(incorrectStyle.Render("Incorrect answer!"))
fmt.Println(incorrectStyle.Render(message))
} else if answerResp == resources.WarningAnswer {

} else {

incorrectStyle := lipgloss.NewStyle().Background(lipgloss.Color("184"))
fmt.Println(incorrectStyle.Render("Answer not submitted!"))
fmt.Println(incorrectStyle.Render(message))
}

}

func run(args []string) {
Expand Down

0 comments on commit ef5e791

Please sign in to comment.