commit 3f0853b8457683a6da4e0da74f8c08e139aad5ab from: Stefan Sperling via: Thomas Adam date: Fri Apr 07 09:56:38 2023 UTC grammar fix for parse.y error message commit - 57b6056a5b13cae29e0cce2163c2dffd90d16e51 commit + 3f0853b8457683a6da4e0da74f8c08e139aad5ab blob - e13e16002a2f2614d8414536473555ae31cb96e0 blob + 7194fcd4fc0a0849d456781ccae9c9b86c49448b --- gotd/parse.y +++ gotd/parse.y @@ -941,7 +941,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; } @@ -961,7 +961,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; } } @@ -981,7 +981,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; } }