Fix missing logname in default error message