diff --git a/Pi-py-Code/protocoll.py b/Pi-py-Code/protocoll.py index 78076de..d8da85e 100644 --- a/Pi-py-Code/protocoll.py +++ b/Pi-py-Code/protocoll.py @@ -36,10 +36,13 @@ def insert_data(temp, sensor_id, config): except mysql.connector.Error as err: if err.errno == errorcode.ER_ACCESS_DENIED_ERROR: print("Etwas ist mit deinem Benutzernamen oder Passwort falsch.") + print(f'Datenbank: {config["host"]}') elif err.errno == errorcode.ER_BAD_DB_ERROR: print("Die Datenbank existiert nicht.") + print(f'Datenbank: {config["host"]}') else: print(err) + print(f'Datenbank: {config["host"]}') if __name__ == '__main__': while True: