Improve error messages, part 1

Signed-off-by: Francis Galiegue <fgaliegue@gmail.com>