Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Message for Controller #82

Open
3 tasks
Segelzwerg opened this issue Feb 13, 2020 · 0 comments
Open
3 tasks

Error Message for Controller #82

Segelzwerg opened this issue Feb 13, 2020 · 0 comments
Labels
bug Something isn't working Hacktoberfest For everybody how needs some PRs.
Milestone

Comments

@Segelzwerg
Copy link
Owner

They should send an error if the input was not correct.
For example:

if (form.getSpeed() == 0) {
Speed speed = service.calculateSpeed(form);
SpeedPresenter speedPresenter = new SpeedPresenter(speed);
model.addAttribute("speed", speedPresenter);
} else if (form.getHour() == 0 && form.getMinute() == 0 && form.getSecond() == 0) {
Time time = service.calculateTime(form);
model.addAttribute("time", time);
}

This should display an error if the conditionals are not met.

  • Heatmap

  • Pace

  • Speed

@Segelzwerg Segelzwerg added the bug Something isn't working label Feb 13, 2020
@Segelzwerg Segelzwerg added this to the 1.0.0 milestone Feb 13, 2020
@Segelzwerg Segelzwerg pinned this issue Feb 13, 2020
@Segelzwerg Segelzwerg added the Hacktoberfest For everybody how needs some PRs. label Oct 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Hacktoberfest For everybody how needs some PRs.
Projects
None yet
Development

No branches or pull requests

1 participant