Rework error messages generated when login fails to not repeat the same

thing "Failed to login to target" several times as the error cascades
up through the layers of callbacks.
This commit is contained in:
Ronnie Sahlberg
2011-01-02 12:12:30 +11:00
parent 796b3a6acc
commit 190ea92810
3 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -217,7 +217,7 @@ int main(int argc, const char *argv[])
}
if (iscsi_full_connect_sync(iscsi, iscsi_url->portal, iscsi_url->lun) != 0) {
fprintf(stderr, "Failed to log in to target %s\n", iscsi_get_error(iscsi));
fprintf(stderr, "Login Failed. %s\n", iscsi_get_error(iscsi));
iscsi_destroy_url(iscsi_url);
iscsi_destroy_context(iscsi);
exit(10);