Browse Source

* the 'linking' section is a section, not a subsection. Fix error messages.

Nikolay Nikolov 1 year ago
parent
commit
e7f6da4cb0
1 changed files with 2 additions and 2 deletions
  1. 2 2
      compiler/ogwasm.pas

+ 2 - 2
compiler/ogwasm.pas

@@ -2253,12 +2253,12 @@ implementation
               Result:=False;
               if not ReadUleb32(Version) then
                 begin
-                  InputError('Error reading the version of the ''linking'' subsection');
+                  InputError('Error reading the version of the ''linking'' section');
                   exit;
                 end;
               if Version<>ExpectedVersion then
                 begin
-                  InputError('The ''linking'' subsection has an unsupported version (expected version ' + tostr(ExpectedVersion) + ', got version ' + tostr(Version) + ')');
+                  InputError('The ''linking'' section has an unsupported version (expected version ' + tostr(ExpectedVersion) + ', got version ' + tostr(Version) + ')');
                   exit;
                 end;
               while AReader.Pos<(SectionStart+SectionSize) do