Report "1 error", not "1 errors", when assembly is aborted

This matches other such pluralized error messages
This commit is contained in:
Rangi
2021-03-28 15:55:32 -04:00
parent 28abf03c0a
commit a265b85d9d
36 changed files with 37 additions and 36 deletions

View File

@@ -353,7 +353,8 @@ int main(int argc, char *argv[])
sect_CheckUnionClosed();
if (nbErrors != 0)
errx(1, "Assembly aborted (%u errors)!", nbErrors);
errx(1, "Assembly aborted (%u error%s)!", nbErrors,
nbErrors == 1 ? "" : "s");
// If parse aborted due to missing an include, and `-MG` was given, exit normally
if (oFailedOnMissingInclude)