Only report the exit code without strerror (#11215)
Emmanuel Vasilakis committed
Jun 1, 2021 at 09:38 UTC
5de2432537ba4300c2c2160efdd017d828f23937
1 file changed
+1
-1
daemon/analytics.c
+1
-1
@@ -920,7 +920,7 @@ void send_statistics(const char *action, const char *action_result, const char *
920
char *s = fgets(buffer, 4, fp);
921
int exit_code = mypclose(fp, command_pid);
922
if (exit_code)
923
- error("Execution of anonymous statistics script returned %s.", strerror(exit_code));
923
+ error("Execution of anonymous statistics script returned %d.", exit_code);
924
if (s && strncmp(buffer, "200", 3))
925
error("Execution of anonymous statistics script returned http code %s.", buffer);
926
} else {