[PATCH] Move td_verror() into io_ops->queue() hook

Shows where the error occured, not where it got noticed.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/engines/sg.c b/engines/sg.c
index d320070..8d086bf 100644
--- a/engines/sg.c
+++ b/engines/sg.c
@@ -261,7 +261,12 @@
 		io_u->error = EIO;
 	}
 
-	return io_u->error;
+	if (io_u->error) {
+		td_verror(td, io_u->error);
+		return io_u->error;
+	}
+
+	return 0;
 }
 
 static struct io_u *fio_sgio_event(struct thread_data *td, int event)