Skip to content

Commit

Permalink
lib-storage: Allow namespaces_created hook to return failure via user…
Browse files Browse the repository at this point in the history
… error.
  • Loading branch information
sirainen committed Jan 12, 2017
1 parent d52d0f2 commit d5d8f7b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib-storage/mail-namespace.c
Expand Up @@ -382,6 +382,12 @@ int mail_namespaces_init_finish(struct mail_namespace *namespaces,
T_BEGIN {
hook_mail_namespaces_created(namespaces);
} T_END;

/* allow namespace hooks to return failure via the user error */
if (namespaces->user->error != NULL) {
*error_r = t_strdup(namespaces->user->error);
return -1;
}
return 0;
}

Expand Down

0 comments on commit d5d8f7b

Please sign in to comment.