adding --detail-error option

This makes our life when debugging easier:

https://gist.github.com/lzap/6248963