Fix error reporting after 1927cbd.