aptos-core icon indicating copy to clipboard operation
aptos-core copied to clipboard

Make view function error messages nice

Open heliuchuan opened this issue 6 months ago • 0 comments

Description

This makes the error returned by a view function human readable. It gets the error info for the code from the relevant move module.

https://github.com/user-attachments/assets/486c4602-7b8e-4d06-b6e1-86516b1f7e49

How Has This Been Tested?

Key Areas to Review

Type of Change

  • [x] New feature
  • [ ] Bug fix
  • [x] Breaking change
  • [ ] Performance improvement
  • [ ] Refactoring
  • [ ] Dependency update
  • [ ] Documentation update
  • [ ] Tests

Which Components or Systems Does This Change Impact?

  • [ ] Validator Node
  • [x] Full Node (API, Indexer, etc.)
  • [ ] Move/Aptos Virtual Machine
  • [ ] Aptos Framework
  • [ ] Aptos CLI/SDK
  • [ ] Developer Infrastructure
  • [ ] Move Compiler
  • [ ] Other (specify)

Checklist

  • [x] I have read and followed the CONTRIBUTING doc
  • [x] I have performed a self-review of my own code
  • [x] I have commented my code, particularly in hard-to-understand areas
  • [x] I identified and added all stakeholders and component owners affected by this change as reviewers
  • [x] I tested both happy and unhappy path of the functionality
  • [x] I have made corresponding changes to the documentation

heliuchuan avatar May 27 '25 00:05 heliuchuan