Don't continue compiling if an error is produced
Add first pattern matching metrics