[fix] Incompatible match arms in parity-clib#9705
Conversation
niklasad1
left a comment
There was a problem hiding this comment.
Basically, this changes the behavior if we get a "malformed" CLI argument we return an error (returns early) instead of calling parity?
I have "no real" opinion whether we should return early with an error or run parity with the remaining arguments (possibly empty) and throw an exception that the user has to deal with!
Well, hm, without this the code doesn't compile (match arms differ in return type: the first is |
|
aha, 0 is definitely an error because on success this function returns the address to the |
|
Throwing an exception short-circuits everything, so the actual return value doesn't matter. |
…mon-deps * origin/master: fix (light/provider) : Make `read_only executions` read-only (#9591) ethcore: fix detection of major import (#9552) return 0 on error (#9705) ethcore: delay ropsten hardfork (#9704) make instantSeal engine backwards compatible, closes #9696 (#9700) Implement CREATE2 gas changes and fix some potential overflowing (#9694) Don't hash the init_code of CREATE. (#9688) ethcore: minor optimization of modexp by using LR exponentiation (#9697) removed redundant clone before each block import (#9683)
This error only shows up when building with
--all-featuresso thejnicode is built.