Improve CLI disallowed attribute error

(The web UI has its own error, which might need improvement but is
unrelated.)