You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered a runtime panic instead of a handled error return when passing an invalid cron expression "1 1 1 x 1" to the ToDescription method. The program should return an error according to best practices rather than causing a panic.
Description:
I encountered a runtime panic instead of a handled error return when passing an invalid cron expression "1 1 1 x 1" to the
ToDescription
method. The program should return an error according to best practices rather than causing a panic.Steps to Reproduce:
Use the following Go code snippet or Playground:
Expected Result:
The method ToDescription should return an error indicating that the input is invalid.
Actual Result:
The program panics with the message:
The text was updated successfully, but these errors were encountered: