commit 6be067cef84c15f7e8623ec8fccaf955d98d006b from: Stefan Sperling date: Thu Apr 06 13:48:24 2023 UTC grammar fix for parse.y error message commit - f850236e70ed5627a614d01de2af54581cbce23f commit + 6be067cef84c15f7e8623ec8fccaf955d98d006b blob - 6f42bdd820b7c919b76ed4f723900baa5232aa7c blob + d2433c74f9a4a7dda902b7cb09f1acc7b78ff8d8 --- gotd/parse.y +++ gotd/parse.y @@ -943,7 +943,7 @@ conf_protect_ref_namespace(char **new, struct got_path if (error) yyerror("got_pathlist_insert: %s", error->msg); else - yyerror("duplicate protect namespace %s", namespace); + yyerror("duplicate protected namespace %s", namespace); return -1; } @@ -963,7 +963,7 @@ conf_protect_tag_namespace(struct gotd_repo *repo, cha TAILQ_FOREACH(pe, &repo->protected_branch_namespaces, entry) { if (strcmp(pe->path, new) == 0) { - yyerror("duplicate protect namespace %s", namespace); + yyerror("duplicate protected namespace %s", namespace); return -1; } } @@ -983,7 +983,7 @@ conf_protect_branch_namespace(struct gotd_repo *repo, TAILQ_FOREACH(pe, &repo->protected_tag_namespaces, entry) { if (strcmp(pe->path, new) == 0) { - yyerror("duplicate protect namespace %s", namespace); + yyerror("duplicate protected namespace %s", namespace); return -1; } }