Skip to content

Redirect stderr to stdout and prevent display error - #15

Merged
jeidison merged 1 commit into
masterfrom
bugfix/redirect-strerr-to-stdout
Nov 14, 2022
Merged

Redirect stderr to stdout and prevent display error#15
jeidison merged 1 commit into
masterfrom
bugfix/redirect-strerr-to-stdout

Conversation

@vitormattos

Copy link
Copy Markdown
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

@vitormattos
vitormattos requested a review from jeidison November 14, 2022 01:46
@jeidison
jeidison merged commit abd3a2e into master Nov 14, 2022
@vitormattos
vitormattos deleted the bugfix/redirect-strerr-to-stdout branch August 4, 2025 12:13
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