add -> try

This commit is contained in:
Neil 2023-04-16 17:15:14 -07:00
parent 47e6c8139e
commit 30f71b562c
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ struct journal journal(void) {
char *contents = 0;
sprintf(fn, "%.2d.txt", *d); /* Reconstruct. */
if(!(contents = text_append_file(&j.backing, fn))) goto catch;
switch(day_tree_bulk_add(&j.days, d32, &v.text)) {
switch(day_tree_bulk_try(&j.days, d32, &v.text)) {
case TREE_PRESENT: intent = "not unique", errno = EDOM; /*sic*/
case TREE_ERROR: goto catch;
case TREE_ABSENT: break; /* Expected. */