Editor: improve error messages.