Confusing crash report when gen_statem:start_link is called with invalid arguments #7685
Labels
feature
not a bug
Issue is determined as not a bug by OTP
priority:low
team:PS
Assigned to OTP team PS
Milestone
Describe the bug
I wrote the following:
(I forgot about the options parameter). This called
gen_statem:start_link/3
. Thus far: my fault.The problem is that the error message is just ... not good:
Rather than something actionable, such as a
function_clause
error, the error talks about a missing format_status function. This could lead someone to try to implement one, rather than to realise that they've merely called the wronggen_statem:start_link()
function.To Reproduce
See above.
Expected behavior
An error message that clearly points to the misuse of
gen_statem:start_link
.Affected versions
OTP-26.1
The text was updated successfully, but these errors were encountered: