Fix: error returned value

Signed-off-by: David Goulet <dgoulet@efficios.com>