Change error messages in reducer
hilltracer opened this issue · comments
Denis Garsh commented
rchain/rholang/src/main/scala/coop/rchain/rholang/interpreter/Reduce.scala
Lines 898 to 905 in 803b706
We should remove "Error:" prefix from here and from similar messages, but also
exception was thrown
is not necessary and duplication of the fact that ReduceError is created.
If you test this error you will see that we are missing information about the location in the source where the error happened. This is inconvenient so at least we should try to provide some context for users to find the position in their source code.
If error is just transformed to another error adaptError
method can be used instead of handleErrorWith
.