Fixed error logging without cause.