[FEATURE] the onError must not return a boolean