Print error message only if exception message is non empty