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

Redirect stderr to stdout and prevent display error #15

Merged
merged 1 commit into from
Nov 14, 2022

Conversation

vitormattos
Copy link
Contributor

Problem

When the command return any type of error, the error will be displayed in terminal. JSignPdf display a warning every time when is executed without the property file.

Ref: LibreSign/libresign#1144

Output with warning:

FINE Default property file doesn't exists.
FINE Default property file doesn't exists.

Solution

Redirect stderr to stdout because the unique necessary output that we need is the last output row of --version.

As described in this stackoverflow link, work fine in Linux and in proprietary OS that I won't pronounce the name.

https://stackoverflow.com/questions/818255/what-does-21-mean

@jeidison jeidison merged commit abd3a2e into master Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants