log error and jump to log