Skip to content

Commit

Permalink
lib-fs: Set fs error on fs_write_stream_abort()
Browse files Browse the repository at this point in the history
Probably would be nice for fs_write_stream_abort() to have an error string
parameter, which could be used instead of this generic error.
  • Loading branch information
sirainen committed May 12, 2016
1 parent 7bea15d commit fece801
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib-fs/fs-api.c
Expand Up @@ -687,6 +687,8 @@ void fs_write_stream_abort(struct fs_file *file, struct ostream **output)
*output = NULL;
if (file->output != NULL)
o_stream_ignore_last_errors(file->output);
/* make sure we don't have an old error lying around */
fs_set_error(file->fs, "Write aborted");
(void)fs_write_stream_finish_int(file, FALSE);
}

Expand Down

0 comments on commit fece801

Please sign in to comment.