开发者

rails3 haml error logging no longer very descriptive

开发者 https://www.devze.com 2023-01-15 17:08 出处:网络
Since migrating a project to rails 3, haml errors are not very descriptive.. All we\'re getting in the logs is a generic nil object error.

Since migrating a project to rails 3, haml errors are not very descriptive..

All we're getting in the logs is a generic nil object error.

For instance in rails 2.3.8 when the indentation in a haml file was incorrect we'd get an error message pointing to the file and approx line.

However now in rails 3 we just get

NoMethodError (You have a nil object wh开发者_运维技巧en you didn't expect it! You might have expected an instance of Array. The error occurred while evaluating nil.+):

Using ruby 1.9.2 / rails 3 / haml 3.0.18

Thanks for your help

Dom

0

精彩评论

暂无评论...
验证码 换一张
取 消