Skip to content

Commit 309e01c

Browse files
committed
Nit: Improve error message.
1 parent d077666 commit 309e01c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lld/MachO/InputFiles.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,7 @@ void ObjFile::parseSymbols(ArrayRef<typename LP::section> sectionHeaders,
810810
if ((sym.n_type & N_TYPE) == N_SECT) {
811811
if (sym.n_sect == 0) {
812812
fatal("Section symbol " + StringRef(strtab + sym.n_strx) + " in " +
813-
toString(this) + " has an invalid section index of 0");
813+
toString(this) + " has an invalid section index [0]");
814814
}
815815
Subsections &subsections = sections[sym.n_sect - 1]->subsections;
816816
// parseSections() may have chosen not to parse this section.

0 commit comments

Comments
 (0)