show and log error with stacktrace
Merge pull request #603 from Kleofass/patch-1

show and log error with stacktrace