Ensure that inline errors are only scoped to the if block
Merge pull request #135 from Tonkpils/error-scope

Ensure that inline errors are only scoped to the if block