Page MenuHomeClusterLabs Projects

Log errors in pcmk_parse_interval_spec() callers
Open, WishlistPublic

Assigned To
None
Authored By
kgaillot
Wed, Oct 2, 3:37 PM
Tags
  • Restricted Project
  • Restricted Project
Referenced Files
None
Subscribers

Description

Currently, the function logs errors itself. However it has no context, so the message is unspecific. To help users better, drop that log and have all callers check the return code and log an appropriate error. Also, the function should return pcmk_rc_bad_input rather than EINVAL since it's a user error rather than coding error.

Event Timeline

kgaillot triaged this task as Wishlist priority.Wed, Oct 2, 3:37 PM
kgaillot created this task.
kgaillot created this object with edit policy "Restricted Project (Project)".