Reputation: 1167
I am experimenting with haml as an alternative to erb for a sinatra app. However if the haml teplate is not correct, for example if there is a problem with the indentation, all I get is an Internal Server Error message.
Do haml output more specific error messages elsewhere or is there some way to get more information about errors?
Upvotes: 0
Views: 283
Reputation: 8478
If you update Sinatra to 1.3.3 you will get proper error logs again in your terminal while running Sinatra. The logs were disabled by default briefly for the last two or three versions but back to default again.
Upvotes: 1
Reputation: 1167
In Sinatra the value of the environment variable determine whether error messages will be output by default. Error messages are enabled by default by setting:
set :environment, :development
Alternatively to output error messages regardless of environment set it directly by:
set :show_exceptions, true
More information on Sinatra's configuration here: http://www.sinatrarb.com/configuration.html
Upvotes: 1