state: Make error messages clearer