question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make Errors More Readable

See original GitHub issue

Overview

Provide a simple overview of what you wish to see added. Please include:

  • What you are trying to do: I tested a list of instructions(910 LOC). Then got an error : ERROR: (ArgumentsLengthError) The number of the given arguments do not match what is defined in the ABI.
  • Why Ape’s current functionality is inadequate to address your goal: Testing redeployment(specially when you edit 2-3 functions and add new variables) contract can be a little difficult with long list of instructions.

Specification

I suggest making the error messages more readable, for instance: tell user on which line the error occurred. ERROR: (ArgumentsLengthError) The number of the given arguments do not match what is defined in the ABI. Line: 350, Function: contract.price(int(1e18), tokenF)...

Dependencies

Include links to any open issues that must be resolved before this feature can be implemented.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
fubuloubucommented, Jan 7, 2022

ape plugins list

Glad to hear you already know about this issue! my version: vyper 0.1.0a8

Oh yes! definitely upodate via pip install -U ape-vyper (we are working on a native way to update via ape plugins)

0reactions
unparalleled-jscommented, Jan 27, 2022

ape plugins add vyper -U should now work

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Write Good Error Messages - UX Planet
An error message should be clear and not ambiguous · Short and meaningful error messages are more understandable · Technical details makes an ......
Read more >
Clean Code and the Art of Exception Handling - Toptal
Exception Handling: It's a Good Thing · Always create your own ApplicationError hierarchy · Never rescue Exception · Never rescue more exceptions than...
Read more >
Error Messages (GNU make)
Here is a list of the more common errors you might see generated by make , and some information about what they mean...
Read more >
Thoughtful Error Handling - Medium
Your error handler is one of your most important security defenses. This blog post is part of a series on ... Make the...
Read more >
7 Tips To Improve Your Error Handling In Python - PyBites
Proper error handling can make your Python code simpler, more readable, and idiomatic. Here are 7 tips to help you.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found