arbiter icon indicating copy to clipboard operation
arbiter copied to clipboard

Adding error handling when Cli input is invalid

Open PossibilityResult opened this issue 3 years ago • 7 comments

When Cli inputs are spelled wrong, the code is panicking.

"thread 'main' panicked at 'called Option::unwrap() on a None value', /Users/elijahfox/Desktop/arbiter/crates/clairvoyance/src/uniswap.rs:192:37`"

We should add error handling with print statements to explain what's going on.

PossibilityResult avatar Jan 15 '23 22:01 PossibilityResult

@Autoparallel @0xJepsen

Happy to take this one

PossibilityResult avatar Jan 15 '23 22:01 PossibilityResult

it's part of the more general error enumeration issue. we should discuss how to represent these internally

ts0yu avatar Jan 16 '23 22:01 ts0yu

What do you mean by this @ts0yu

PossibilityResult avatar Jan 17 '23 19:01 PossibilityResult

Are you suggesting it's included in #45 ? Can close it if yeah

PossibilityResult avatar Jan 17 '23 19:01 PossibilityResult

@eljhfx It isn't mentioned directly in there. Your issue here sounds more tractable as it is smaller. The error handling should almost be a milestone as there are places to do it throughout the codebase.

Autoparallel avatar Jan 17 '23 19:01 Autoparallel

@Autoparallel If you want to assign this to me it probably shouldnt take more than a day or two

PossibilityResult avatar Jan 17 '23 19:01 PossibilityResult

@eljhfx you have been assigned.

May the force be with you

Autoparallel avatar Jan 17 '23 19:01 Autoparallel