Anastasia-Labs / lucid-evolution

https://anastasia-labs.github.io/lucid-evolution/
44 stars 17 forks source link

Add spacing for error messages that include traces #267

Closed SynthLuvr closed 1 month ago

SynthLuvr commented 2 months ago
  (FiberFailure) TxBuilderError (FiberFailureImpl) {
    message: '{ Complete: "Redeemer (Mint, 0): The provided Plutus code called \'error\'.ExBudget {    mem: 21775,    cpu: 8274017,}The beacon token must be spentValidator returned false" }',
    [Symbol.for(effect/Runtime/FiberFailure)]: Symbol.for(effect/Runtime/FiberFailure),
    [Symbol.for(effect/Runtime/FiberFailure/Cause)]: {
      _tag: 'Fail',
      error: TxBuilderError {
        _tag: 'TxBuilderError',
        message: '{ Complete: "Redeemer (Mint, 0): The provided Plutus code called \'error\'.ExBudget {    mem: 21775,    cpu: 8274017,}The beacon token must be spentValidator returned false" }',
      },
    },
  }

Here the error is shown as The beacon token must be spentValidator returned false. Ideally there should be a separator between the error messages, like: The beacon token must be spent; Validator returned false. When a script has multiple traces, it makes it a bit difficult to read since it's concatenated without separators

solidsnakedev commented 2 months ago

noted

solidsnakedev commented 1 month ago

Fix https://github.com/Anastasia-Labs/lucid-evolution/pull/278