[PD1] Error handling project-wide

This commit is contained in:
Afonso Franco 2024-04-28 22:02:13 +01:00
parent f5b3726673
commit b918211736
Signed by: afonso
SSH key fingerprint: SHA256:aiLbdlPwXKJS5wMnghdtod0SPy8imZjlVvCyUX9DJNk
13 changed files with 364 additions and 245 deletions

View file

@ -3,7 +3,6 @@ package server
import (
"bufio"
"fmt"
"log"
"os"
)
@ -13,7 +12,3 @@ func readStdin(message string) string {
scanner.Scan()
return scanner.Text()
}
func LogFatal(err error) {
log.Fatalln(err)
}