Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STDOUT not printed to script console if an error was reached #131

Open
aishairzay opened this issue Mar 16, 2021 · 0 comments
Open

STDOUT not printed to script console if an error was reached #131

aishairzay opened this issue Mar 16, 2021 · 0 comments
Assignees
Labels
Bug Something isn't working

Comments

@aishairzay
Copy link
Contributor

Describe the bug
If a program runs into an exception of any kind, any logs that were to have happened during the execution of the running Cadence will not be shown to the user.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Flow playground
  2. Run a script that looks like the following:
    pub fun main(): Int { log("This log should print"); panic("But it did not"); }
    Only 'But it did not' will be output to the user.

Expected behavior
Both "This log should print" and "But it did not" should be printed, with "But it did not" being red to indicate it is from STDERR.

@alse alse added the Bug Something isn't working label Sep 15, 2022
@sideninja sideninja assigned DylanTinianov and unassigned 10thfloor Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants