diff options
author | Emmanuel Vasilakis <mrzammler@mm.st> | 2021-06-01 09:38:59 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-01 09:38:59 +0300 |
commit | 5de2432537ba4300c2c2160efdd017d828f23937 (patch) | |
tree | a0f9927fa630987b2e86e575f09eadaee4b5e549 /daemon | |
parent | a311659c1f87935027c6153576564461a7d6e7a5 (diff) |
Only report the exit code without strerror (#11215)
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/analytics.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/analytics.c b/daemon/analytics.c index efd3ac5a00..889d2241aa 100644 --- a/daemon/analytics.c +++ b/daemon/analytics.c @@ -920,7 +920,7 @@ void send_statistics(const char *action, const char *action_result, const char * char *s = fgets(buffer, 4, fp); int exit_code = mypclose(fp, command_pid); if (exit_code) - error("Execution of anonymous statistics script returned %s.", strerror(exit_code)); + error("Execution of anonymous statistics script returned %d.", exit_code); if (s && strncmp(buffer, "200", 3)) error("Execution of anonymous statistics script returned http code %s.", buffer); } else { |