Skip to content

Commit eb99b22

Browse files
committed
added new error logging using go's standard logger, exited the programme if the error occoured
1 parent 24c769d commit eb99b22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

error_handling/driver/driver.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
func main() {
1212
// This says that set a prefix everytime you land in an error
1313
log.SetPrefix("######====> ")
14-
// This disables ot
14+
// This disables other info while we get errors like timestamp and all
1515
log.SetFlags(0)
1616

1717
message, error := car.StartCar("")

0 commit comments

Comments
 (0)