Changed Update check error message if connection fails

This commit is contained in:
netbenixcn 2020-07-24 16:32:45 +02:00
parent 0f22821c83
commit b390d72a7d
2 changed files with 2 additions and 2 deletions

2
main.c
View file

@ -19,7 +19,7 @@
#include "utils/update_check.h" #include "utils/update_check.h"
#define VERSION "0.2.1" #define VERSION "0.2.2"
#define AUTHOR "netbenix" #define AUTHOR "netbenix"
void exit_app(){ void exit_app(){

View file

@ -23,7 +23,7 @@ int checkForUpdate(char ver[10]){
//Connect to Server //Connect to Server
if(connect(sock, (struct sockaddr *)&server, sizeof(server)) < 0){ if(connect(sock, (struct sockaddr *)&server, sizeof(server)) < 0){
perror("Error. Connnection failed."); perror("Error. Connnection to update server failed.");
logger("[ERROR] Connection to update server failed."); logger("[ERROR] Connection to update server failed.");
return 1; return 1;
} }