Handle input errors first in edit literal fragment.