better error message when schema is unknown