Fix handling of error conditions that are literals