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 d4a85e1 commit eaac258
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib-fs/fs-api.c
Expand Up @@ -703,6 +703,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 eaac258

Please sign in to comment.