case ERR_EMPTY_COMMIT:
printf_ln(_("Patch is empty.\n"
"If you want to record it as an empty commit, run \"git am --allow-empty\"."));
die_user_resolve(state);
Sorry for the missing "break" here.
case DIE_EMPTY_COMMIT:
am_destroy(state);
die(_("Patch is empty."));
break;