Log content of errorCode instead of string "error code"