[edit] do not exit on error in edit mode

fix #456