Fix Error Management

Signed-off-by: Baptiste DURAND <baptiste.durand@open.eurogiciel.org>