Minor formatting adjustments

This commit is contained in:
Fred Boniface 2023-08-11 17:38:31 +01:00
parent 43ebc5e4f3
commit 95a9088cc9
2 changed files with 6 additions and 4 deletions

View File

@ -37,13 +37,15 @@ func main() {
func init() {
log.Msg.Info("Starting map-dots")
fmt.Println("\n" + ascii)
fmt.Print(ascii)
fmt.Println("Creating art from location data")
}
const ascii string = `
const ascii string = `
`
`

View File

@ -14,7 +14,7 @@ func envCheck() {
url := os.Getenv("TRACCAR_URL")
if user == "" || pass == "" || url == "" {
fmt.Println("To use Traccar, you must set the environment variables:\n'TRACCAR_USER', 'TRACCAR_PASS', and for CLI use only 'TRACCAR_DEVID'")
fmt.Println("To use Traccar, you must set the environment variables:\n'TRACCAR_USER', 'TRACCAR_PASS', 'TRACCAR_URL' and for CLI use only 'TRACCAR_DEVID'")
os.Stdout.Sync() // Flush the output buffer
log.Msg.Fatal("Unable to read values from environment")
}