Added an error management for the menu edition.