samsondav / rihanna

Rihanna is a high performance postgres-backed job queue for Elixir
MIT License
439 stars 49 forks source link

Improve error messages if Date given instead of DateTime for schedule/{2,3} #44

Closed lpil closed 5 years ago

lpil commented 5 years ago

The current error message is worse than the default NoClauseError in Elixir because it doesn't tell you which argument is the problem.

We can either improve the message or just let Elixir handle it with a NoClauseError.

samsondav commented 5 years ago

Letting it drop through to a NoClauseError would be fine with me.

lpil commented 5 years ago

Alrighto, I'll do that. Thanks!