question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to deal with return codes

See original GitHub issue

Perhaps I miss something easy.

But I could not see how I would deal with return codes > 0, i.e a command I issue returns an error. Example: ~'cat /etc/shadow

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
tusharsadhwanicommented, May 16, 2021

I could possibly change the syntax of the return btw:

output, stderr_output, return_code = ~'...'

You would be able to get each one of the values by using 1, 2 or 3 values on the left hand side respectively. Does this syntax seem worth adding?

4reactions
manfredlotzcommented, May 16, 2021

Thanks for your quick answer.I think it would be great to have stdout, stderr and return code which would give maximum flexibility.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Best Practices When Dealing with ACH Return Codes
ACH return codes can slow down a financial transaction. Learn these best practices when dealing with ACH return codes for your ACH payment ......
Read more >
ACH Return Codes | The Complete List - PaymentCloud
Did your ACH payment get returned? Learn about the 80+ NACHA ACH return codes and how to avoid the dreaded ACH return fee....
Read more >
ACH return codes : reasons and meanings - GoCardless
Find out what each ACH return code means in our complete list, and find out what to do when an ACH transaction is...
Read more >
Return codes - IBM
Return codes in this range indicate an exception condition that an application program can handle: 201 (NC_COUNTER_NOT_FOUND): The named counter cannot be found ......
Read more >
Common ACH Return Codes [Examples & Definition] | Resolve
Return Code Description Details R19 Amount Field Error Improper formatting of the amount field R32 RDFI Non‑Settlement RDFI is not able to settle the entry R48...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found