libbe(3): Document that we'll clobber previous errors set by set_error

This commit is contained in:
Kyle Evans 2018-08-07 03:26:32 +00:00
parent f1ca70d3e1
commit 20b7b8d86c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/bectl/; revision=337408
2 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,6 @@ int
set_error(libbe_handle_t *lbh, be_error_t err)
{
/* XXX TODO: should the old error be overwritten or no? */
lbh->error = err;
if (lbh->print_on_err && (err != BE_ERR_SUCCESS))
fprintf(stderr, "%s\n", libbe_error_description(lbh));

View File

@ -64,6 +64,7 @@ typedef struct prop_data {
int prop_list_builder_cb(zfs_handle_t *, void *);
int be_proplist_update(prop_data_t *);
/* Clobbers any previous errors */
int set_error(libbe_handle_t *, be_error_t);
#endif /* _LIBBE_IMPL_H */