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(); sect_CheckUnionClosed();
if (nbErrors != 0) 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 parse aborted due to missing an include, and `-MG` was given, exit normally
if (oFailedOnMissingInclude) if (oFailedOnMissingInclude)

View File

@@ -1,3 +1,3 @@
ERROR: align-large-ofs.asm(2): ERROR: align-large-ofs.asm(2):
Alignment offset (2) must be smaller than alignment size (2) Alignment offset (2) must be smaller than alignment size (2)
error: Assembly aborted (1 errors)! error: Assembly aborted (1 error)!

View File

@@ -1,3 +1,3 @@
ERROR: assert-nosect-bank.asm(1): ERROR: assert-nosect-bank.asm(1):
PC has no bank outside a section PC has no bank outside a section
error: Assembly aborted (1 errors)! error: Assembly aborted (1 error)!

View File

@@ -1,3 +1,3 @@
ERROR: assert@-no-sect.asm(1): ERROR: assert@-no-sect.asm(1):
PC has no value outside a section PC has no value outside a section
error: Assembly aborted (1 errors)! error: Assembly aborted (1 error)!

View File

@@ -2,4 +2,4 @@ warning: deprecated-pi.asm(2): [-Wobsolete]
`_PI` is deprecated; use 3.14159 `_PI` is deprecated; use 3.14159
ERROR: deprecated-pi.asm(3): ERROR: deprecated-pi.asm(3):
Built-in symbol '_PI' cannot be purged Built-in symbol '_PI' cannot be purged
error: Assembly aborted (1 errors)! error: Assembly aborted (1 error)!

View File

@@ -2,4 +2,4 @@ ERROR: ds-bad.asm(3):
Expected constant expression: 'unknown' is not constant at assembly time Expected constant expression: 'unknown' is not constant at assembly time
warning: ds-bad.asm(4): [-Wtruncation] warning: ds-bad.asm(4): [-Wtruncation]
Expression must be 8-bit Expression must be 8-bit
error: Assembly aborted (1 errors)! error: Assembly aborted (1 error)!

View File

@@ -1,3 +1,3 @@
ERROR: fragment-align.asm(25): ERROR: fragment-align.asm(25):
Section's alignment fails required alignment (offset from section start = $0004) Section's alignment fails required alignment (offset from section start = $0004)
error: Assembly aborted (1 errors)! error: Assembly aborted (1 error)!

View File

@@ -1,3 +1,3 @@
ERROR: garbage_char.asm(1): ERROR: garbage_char.asm(1):
Unknown character 0xFF Unknown character 0xFF
error: Assembly aborted (1 errors)! error: Assembly aborted (1 error)!

View File

@@ -1,3 +1,3 @@
ERROR: if@-no-sect.asm(1): ERROR: if@-no-sect.asm(1):
PC has no value outside a section PC has no value outside a section
error: Assembly aborted (1 errors)! error: Assembly aborted (1 error)!

View File

@@ -1,3 +1,3 @@
ERROR: incbin-empty-bad.asm(3): ERROR: incbin-empty-bad.asm(3):
Specified range in INCBIN is out of bounds (0 + 1 > 0) Specified range in INCBIN is out of bounds (0 + 1 > 0)
error: Assembly aborted (1 errors)! error: Assembly aborted (1 error)!

View File

@@ -1,3 +1,3 @@
ERROR: incbin-end-bad.asm(3): ERROR: incbin-end-bad.asm(3):
Specified range in INCBIN is out of bounds (123 + 1 > 123) Specified range in INCBIN is out of bounds (123 + 1 > 123)
error: Assembly aborted (1 errors)! error: Assembly aborted (1 error)!

View File

@@ -1,3 +1,3 @@
ERROR: label-outside-section.asm(1): ERROR: label-outside-section.asm(1):
Label "bad" created outside of a SECTION Label "bad" created outside of a SECTION
error: Assembly aborted (1 errors)! error: Assembly aborted (1 error)!

View File

@@ -1,3 +1,3 @@
ERROR: label-redefinition.asm(7): ERROR: label-redefinition.asm(7):
'Sym' already defined at label-redefinition.asm(6) -> label-redefinition.asm::m(4) 'Sym' already defined at label-redefinition.asm(6) -> label-redefinition.asm::m(4)
error: Assembly aborted (1 errors)! error: Assembly aborted (1 error)!

View File

@@ -1,3 +1,3 @@
ERROR: line-continuation-whitespace.asm(7): ERROR: line-continuation-whitespace.asm(7):
Label "foo" created outside of a SECTION Label "foo" created outside of a SECTION
error: Assembly aborted (1 errors)! error: Assembly aborted (1 error)!

View File

@@ -1,3 +1,3 @@
ERROR: line-continuation.asm(7): ERROR: line-continuation.asm(7):
Label "foo" created outside of a SECTION Label "foo" created outside of a SECTION
error: Assembly aborted (1 errors)! error: Assembly aborted (1 error)!

View File

@@ -1,3 +1,3 @@
ERROR: load-rom.asm(3): ERROR: load-rom.asm(3):
`LOAD` blocks cannot create a ROM section `LOAD` blocks cannot create a ROM section
error: Assembly aborted (1 errors)! error: Assembly aborted (1 error)!

View File

@@ -1,3 +1,3 @@
ERROR: local-purge.asm(8): ERROR: local-purge.asm(8):
Interpolated symbol ".loc" does not exist Interpolated symbol ".loc" does not exist
error: Assembly aborted (1 errors)! error: Assembly aborted (1 error)!

View File

@@ -1,3 +1,3 @@
ERROR: local-without-parent.asm(2): ERROR: local-without-parent.asm(2):
Local label '.test' in main scope Local label '.test' in main scope
error: Assembly aborted (1 errors)! error: Assembly aborted (1 error)!

View File

@@ -1,3 +1,3 @@
ERROR: local-wrong-parent.asm(5): ERROR: local-wrong-parent.asm(5):
Not currently in the scope of 'WrongParent' Not currently in the scope of 'WrongParent'
error: Assembly aborted (1 errors)! error: Assembly aborted (1 error)!

View File

@@ -1,3 +1,3 @@
ERROR: macro-arg-in-string.asm(12): ERROR: macro-arg-in-string.asm(12):
Illegal character escape '!' Illegal character escape '!'
error: Assembly aborted (1 errors)! error: Assembly aborted (1 error)!

View File

@@ -2,4 +2,4 @@ ERROR: multi-line-strings.asm(23):
Unterminated string Unterminated string
warning: multi-line-strings.asm(35): [-Wuser] warning: multi-line-strings.asm(35): [-Wuser]
check the line number check the line number
error: Assembly aborted (1 errors)! error: Assembly aborted (1 error)!

View File

@@ -1,3 +1,3 @@
ERROR: narg-nosect.asm(1): ERROR: narg-nosect.asm(1):
_NARG does not make sense outside of a macro _NARG does not make sense outside of a macro
error: Assembly aborted (1 errors)! error: Assembly aborted (1 error)!

View File

@@ -1,3 +1,3 @@
ERROR: nested-brackets.asm(5): ERROR: nested-brackets.asm(5):
Missing } Missing }
error: Assembly aborted (1 errors)! error: Assembly aborted (1 error)!

View File

@@ -1,3 +1,3 @@
ERROR: null-in-macro.asm(4) -> null-in-macro.asm::foo(2): ERROR: null-in-macro.asm(4) -> null-in-macro.asm::foo(2):
Unknown character 0x00 Unknown character 0x00
error: Assembly aborted (1 errors)! error: Assembly aborted (1 error)!

View File

@@ -1,3 +1,3 @@
ERROR: period.asm(5): ERROR: period.asm(5):
syntax error, unexpected . syntax error, unexpected .
error: Assembly aborted (1 errors)! error: Assembly aborted (1 error)!

View File

@@ -1,3 +1,3 @@
ERROR: period.asm(5): ERROR: period.asm(5):
syntax error syntax error
error: Assembly aborted (1 errors)! error: Assembly aborted (1 error)!

View File

@@ -1,3 +1,3 @@
ERROR: purge-refs.asm(6): ERROR: purge-refs.asm(6):
Symbol "Floating" is referenced and thus cannot be purged Symbol "Floating" is referenced and thus cannot be purged
error: Assembly aborted (1 errors)! error: Assembly aborted (1 error)!

View File

@@ -1,3 +1,3 @@
ERROR: purge.asm(9): ERROR: purge.asm(9):
Symbol "Referenced" is referenced and thus cannot be purged Symbol "Referenced" is referenced and thus cannot be purged
error: Assembly aborted (1 errors)! error: Assembly aborted (1 error)!

View File

@@ -1,3 +1,3 @@
ERROR: redef-equs.asm(23): ERROR: redef-equs.asm(23):
'N' already defined as non-EQUS at redef-equs.asm(22) 'N' already defined as non-EQUS at redef-equs.asm(22)
error: Assembly aborted (1 errors)! error: Assembly aborted (1 error)!

View File

@@ -1,3 +1,3 @@
ERROR: string-formatting.asm(10): ERROR: string-formatting.asm(10):
Formatting string with prefix flag '#' Formatting string with prefix flag '#'
error: Assembly aborted (1 errors)! error: Assembly aborted (1 error)!

View File

@@ -1,3 +1,3 @@
ERROR: sym-collision.asm(26): ERROR: sym-collision.asm(26):
Interpolated symbol "dork" does not exist Interpolated symbol "dork" does not exist
error: Assembly aborted (1 errors)! error: Assembly aborted (1 error)!

View File

@@ -1,3 +1,3 @@
ERROR: syntax-error-eof-newline.asm(5) -> syntax-error-eof-newline.inc(1): ERROR: syntax-error-eof-newline.asm(5) -> syntax-error-eof-newline.inc(1):
syntax error, unexpected newline syntax error, unexpected newline
error: Assembly aborted (1 errors)! error: Assembly aborted (1 error)!

View File

@@ -1,3 +1,3 @@
ERROR: syntax-error-eof-newline.asm(5) -> syntax-error-eof-newline.inc(1): ERROR: syntax-error-eof-newline.asm(5) -> syntax-error-eof-newline.inc(1):
syntax error syntax error
error: Assembly aborted (1 errors)! error: Assembly aborted (1 error)!

View File

@@ -1,3 +1,3 @@
ERROR: syntax-error.asm(2): ERROR: syntax-error.asm(2):
syntax error, unexpected a syntax error, unexpected a
error: Assembly aborted (1 errors)! error: Assembly aborted (1 error)!

View File

@@ -1,3 +1,3 @@
ERROR: syntax-error.asm(2): ERROR: syntax-error.asm(2):
syntax error syntax error
error: Assembly aborted (1 errors)! error: Assembly aborted (1 error)!

View File

@@ -3,4 +3,4 @@ Linking failed with 1 error
--- ---
ERROR: <stdin>(30): ERROR: <stdin>(30):
Assertion failed: Force failing the build Assertion failed: Force failing the build
error: Assembly aborted (1 errors)! error: Assembly aborted (1 error)!