Skip to content

Commit

Permalink
#131 write errors to stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
koekeishiya committed Jul 14, 2019
1 parent 88bc334 commit f1a27ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
## [Unreleased]
### Changed
- Float native macOS fullscreen spaces [#130](https://github.com/koekeishiya/yabai/issues/130)
- Write error messsages returned to the client through *stderr* [#131](https://github.com/koekeishiya/yabai/issues/131)

## [1.1.1] - 2019-07-14
### Changed
Expand Down
6 changes: 3 additions & 3 deletions src/yabai.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,13 @@ static int client_send_message(int argc, char **argv)
rsp[byte_count] = '\0';

if (rsp[0] == FAILURE_MESSAGE[0]) {
fprintf(stdout, "%s", rsp + 1);
result = EXIT_FAILURE;
fprintf(stderr, "%s", rsp + 1);
fflush(stderr);
} else {
fprintf(stdout, "%s", rsp);
fflush(stdout);
}

fflush(stdout);
}
}

Expand Down

0 comments on commit f1a27ed

Please sign in to comment.