$error isn't defined and used

Signed-off-by: Etienne CHAMPETIER <etienne.champetier@fiducial.net>