tangle icon indicating copy to clipboard operation
tangle copied to clipboard

[TASK] Improve type checking error

Open Serial-ATA opened this issue 9 months ago • 0 comments

Overview

When doing a job call, type checking is performed, and the cause of errors is known: https://github.com/tangle-network/tangle/blob/7ee0572ac79e6305e3fcfd5afb7920d776d888ec/primitives/src/services/jobs.rs#L135-L157

However, the error is then immediately converted to one with no information: https://github.com/tangle-network/tangle/blob/7ee0572ac79e6305e3fcfd5afb7920d776d888ec/pallets/services/src/lib.rs#L1360

We should retain the information from the original error, otherwise it isn't clear what's gone wrong.

Serial-ATA avatar Mar 13 '25 14:03 Serial-ATA