near-cli icon indicating copy to clipboard operation
near-cli copied to clipboard

Errors shown escaped in command line

Open ilblackdragon opened this issue 4 years ago • 4 comments

Errors have escape characters when shown in command line.

  1. Steps to reproduce 1. Run some command that will generate a smart contract error 2. Observe that error is escaped
    $ near call delegate-to-me.test new ' {"owner_id": "illia", "staking_public_key": "5j48GQoZyzW7jjeMFAgztUS2Ui5LAn3Kx7KJEXCLz6hv"} 
    
    ' --account_id delegate-to-me.test
    Error: GuestPanic <span class="error">[Error]</span>: Smart contract panicked: panicked at 'Failed to deserialize input from JSON.: Error("missing field `owner`", line: 1, column: 88)', src/lib.rs:68:1
    

ilblackdragon avatar Apr 19 '20 19:04 ilblackdragon

So the output should be... Error: GuestPanic [Error]: Smart contract panicked: panicked at 'Failed to deserialize input from JSON.: Error("missing field owner", line: 1, column: 88)', src/lib.rs:68:1

?

june07 avatar Jun 07 '20 02:06 june07

So the output should be... Error: GuestPanic [Error]: Smart contract panicked: panicked at 'Failed to deserialize input from JSON.: Error("missing field owner", line: 1, column: 88)', src/lib.rs:68:1

?

That's correct.

janedegtiareva avatar Jun 10 '20 19:06 janedegtiareva

I'm thinking this would be good for @volovyk-s

mikedotexe avatar May 11 '21 16:05 mikedotexe

Hi . May I work on this ?

Rishabhraghwendra18 avatar Jun 23 '21 10:06 Rishabhraghwendra18