This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
version = flag.Bool("version", false, "Print version information")
warranty = flag.Bool("warranty", false, "Print warranty information")
)
version = flag.Bool("version", false, "Print version information")
warranty = flag.Bool("warranty", false, "Print warranty information")
)
- fmt.Println(ctx.Humanize(t))
- }
- if err = scanner.Err(); err != nil {
- log.Fatalln("Can not read log:", err)
+ s, err := ctx.Humanize(le)
+ if err != nil {
+ s = fmt.Sprintf("Can not humanize: %s\n%s", err, le)
+ }
+ fmt.Println(s)