#304: Treat input errors more cleanly.