mojo icon indicating copy to clipboard operation
mojo copied to clipboard

traceback in Mojo::Exception print fully qualified sub names

Open andrew-grechkin opened this issue 3 years ago • 2 comments

This should fix the situation with traceback produced by Mojo::Exception much less informative than traceback produced by Carp

exception: raise at /home/agrechkin/tmp/test-exception line 9.
Traceback (most recent call first):
  File "/home/agrechkin/tmp/test-exception", line 9, in "main"
  File "/home/agrechkin/tmp/test-exception", line 12, in "main"
  File "/home/agrechkin/tmp/test-exception", line 24, in "main"
  File "/home/agrechkin/tmp/test-exception", line 29, in "main"

exception: croak at /home/agrechkin/tmp/test-exception line 17.
        eval {...} called at /home/agrechkin/tmp/test-exception line 20
        main::carp_croak() called at /home/agrechkin/tmp/test-exception line 25
        main::main() called at /home/agrechkin/tmp/test-exception line 29

Closes: #1947

andrew-grechkin avatar Jun 29 '22 22:06 andrew-grechkin

@kraih I have fixed tidyness and one typo. can you please reapprove workflow run.

andrew-grechkin avatar Jun 30 '22 06:06 andrew-grechkin

@kraih really sorry for the noise. I should've setup perltidy pre-commit hook can you please re-approve the workflows again

andrew-grechkin avatar Jun 30 '22 19:06 andrew-grechkin