Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rescue ::SyntaxError when checking Ruby code
Since Haml::Exec::Haml is inside the top Haml module, "SyntaxError" refers to "Haml::SyntaxError", not the top level "SyntaxError". Use "::SyntaxError" to make sure we rescue the right one, and avoid the need to rescue "Exception".
- Loading branch information