navigation

FailwithWithSingleArgument (FL0016)

Cause

failwith is passed more than one argument e.g. failwith "Divisor cannot be zero." 5

Rationale

failwith being passed more than one argument (the error message) is probably a mistake.

How To Fix

Remove the extra arguments.

Rule Settings

{
    "failwithWithSingleArgument": {
        "enabled": true
    }
}