From: David Sterba Date: Thu, 24 Mar 2016 14:26:05 +0000 (+0100) Subject: btrfs-progs: make error message from add_clone_source more generic X-Git-Tag: upstream/4.16.1~1637 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7b80b7638605050898a7a324b9f30c70388205bb;p=platform%2Fupstream%2Fbtrfs-progs.git btrfs-progs: make error message from add_clone_source more generic Do not hardcode the error message. Signed-off-by: David Sterba --- diff --git a/cmds-send.c b/cmds-send.c index bdf1c97..4063475 100644 --- a/cmds-send.c +++ b/cmds-send.c @@ -474,7 +474,7 @@ int cmd_send(int argc, char **argv) ret = add_clone_source(&send, root_id); if (ret < 0) { - error("not enough memory"); + error("cannot add clone source: %s", strerror(-ret)); goto out; } subvol_uuid_search_finit(&send.sus); @@ -579,7 +579,7 @@ int cmd_send(int argc, char **argv) ret = add_clone_source(&send, parent_root_id); if (ret < 0) { - error("not enough memory"); + error("cannot add clone source: %s", strerror(-ret)); goto out; } } @@ -677,7 +677,7 @@ int cmd_send(int argc, char **argv) /* done with this subvol, so add it to the clone sources */ ret = add_clone_source(&send, root_id); if (ret < 0) { - error("not enough memory"); + error("cannot add clone source: %s", strerror(-ret)); goto out; } }