Start adding error diagnostics to the xn CLI