Skip to content

Commit

Permalink
fix: format error codes in compilation report as a list (#1051)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gusarich authored Nov 18, 2024
1 parent 83e1681 commit 5d95994
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Optional types for `self` argument in `extends mutates` functions are now allowed: PR [#854](https://github.com/tact-lang/tact/pull/854)
- Docs: complete overhaul of the exit codes page: PR [#978](https://github.com/tact-lang/tact/pull/978)
- Docs: enhanced Jettons Cookbook page: PR [#944](https://github.com/tact-lang/tact/pull/944)
- Error codes in the report are now formatted as a list: PR [#1051](https://github.com/tact-lang/tact/pull/1051)

### Fixed

Expand Down
2 changes: 1 addition & 1 deletion src/generator/writeReport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export function writeReport(ctx: CompilerContext, pkg: PackageFileFormat) {
// Error Codes
w.write(`# Error Codes`);
Object.entries(abi.errors!).forEach(([t, abiError]) => {
w.write(`${t}: ${abiError.message}`);
w.write(`* ${t}: ${abiError.message}`);
});
w.append();

Expand Down

0 comments on commit 5d95994

Please sign in to comment.