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

Error printed to stdout #18

Open
Artoria2e5 opened this issue Aug 10, 2023 · 1 comment
Open

Error printed to stdout #18

Artoria2e5 opened this issue Aug 10, 2023 · 1 comment

Comments

@Artoria2e5
Copy link

The peaq utility currently prints the error to stdout, using a bunch of puts. This made my script a little harder to debug.

I'm afraid there's no easy thing like puts for stderr: you'd have to write a function yourself. Like

int eputs(const char *str) {
  return fprintf(stderr, "%s\n", str);
}
@martinholters
Copy link
Member

100% agreed. Error handling in gstpeaq is really bad presently. For this particular issue, g_printerr probably is the way to go. A PR to that effect would be welcome. Otherwise I might eventually get around to doing it, but not too soon.

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

No branches or pull requests

2 participants