add -> try
This commit is contained in:
parent
47e6c8139e
commit
30f71b562c
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user