Skip to content

Assembly Error Message #3082

@barnjamin

Description

@barnjamin

Problem

When using the API to compile a teal contract, if there is a syntax error or something else the error returned is a generic "%d error(s)" with no hints on what it might be.

The assembler does have some list of the errors but summarizes them with a count here:
https://github.com/algorand/go-algorand/blob/master/data/transactions/logic/assembler.go#L1676-L1682

Is this done for a specific reason or could we return some string with all the error messages or at least the first N?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions