From 4b665934c7a02628264d4e8b5b2a0ceebf46d9e5 Mon Sep 17 00:00:00 2001 From: fdai7057 Date: Fri, 10 Feb 2023 22:30:54 +0100 Subject: [PATCH] Hot fix: uncomment necessary error messages. --- src/error.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/error.c b/src/error.c index f9b6251..6f40fa6 100644 --- a/src/error.c +++ b/src/error.c @@ -5,51 +5,51 @@ int errorMessage(int errorCode) int returnValue=0; switch(errorCode){ case -1: - // puts("Login not successful."); + puts("Login not successful."); returnValue = -1; break; case -2: - // puts("Maximum number of attempts reached."); + puts("Maximum number of attempts reached."); returnValue = -2; break; case -3: - // puts("No menu entry available for this number."); + puts("No menu entry available for this number."); returnValue = -3; break; case -4: - // puts("CustomerData.* not found. Make sure that you've created an user account before logging in for the first time. Without users there is no file. Aborting!"); + puts("CustomerData.* not found. Make sure that you've created an user account before logging in for the first time. Without users there is no file. Aborting!"); returnValue = -4; break; case -5: - // puts("You should be at least 18 years old to create a bank account!"); + puts("You should be at least 18 years old to create a bank account!"); returnValue = -5; break; case -6: - // puts("Error when trying to open a file to create a customer account."); + puts("Error when trying to open a file to create a customer account."); returnValue = -6; break; case -7: - // puts("Forename too long. (length > 15 characters) Aborting!"); + puts("Forename too long. (length > 15 characters) Aborting!"); returnValue = -7; break; case -8: - // puts("Surname too long. (length > 15 characters) Aborting!"); + puts("Surname too long. (length > 15 characters) Aborting!"); returnValue = -8; break; case -9: - // puts("Password too long. (length > 20 characters) Aboring!"); + puts("Password too long. (length > 20 characters) Aboring!"); returnValue = -9; break; case -10: - // puts("You have entered an invalid character [ä,ö,ü, special characters] for your forename. This is not allowed. Aborting!"); + puts("You have entered an invalid character [ä,ö,ü, special characters] for your forename. This is not allowed. Aborting!"); returnValue = -10; break; case -11: - // puts("You have entered an invalid character [ä,ö,ü, special characters] for your surname. This is not allowed. Aborting!"); + puts("You have entered an invalid character [ä,ö,ü, special characters] for your surname. This is not allowed. Aborting!"); returnValue = -11; break; case -12: - // puts("You entered too many digits."); + puts("You entered too many digits."); returnValue = -12; break; default: