diff options
author | David Sterba <dsterba@suse.com> | 2016-03-24 15:26:05 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-03-30 16:26:21 +0200 |
commit | 7b80b7638605050898a7a324b9f30c70388205bb (patch) | |
tree | b813e8fbd697619999c4baf813124699b75e6be2 /cmds-send.c | |
parent | a26044607704ce1be732d1256ffc35c31ebce147 (diff) |
btrfs-progs: make error message from add_clone_source more generic
Do not hardcode the error message.
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'cmds-send.c')
-rw-r--r-- | cmds-send.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmds-send.c b/cmds-send.c index bdf1c977..4063475a 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; } } |