print the right error message

Signed-off-by: Tim Henderson <tim.tadh@gmail.com>