show and log error with stacktrace