onflow / cadence

Cadence, the resource-oriented smart contract programming language 🏃‍♂️
https://cadence-lang.org
Apache License 2.0
534 stars 138 forks source link

Standardize internal error messages #3688

Open turbolent opened 5 days ago

turbolent commented 5 days ago

Issue to be solved

Make it easy to identify internal errors, so it is easier for contributors to get alerted and security researchers to report.

Suggested Solution

Prefix all error messages for internal errors with the prefix internal error: and ensure user error messages do not have this prefix.