feat: prefix error message with ERROR
This commit is contained in:
parent
17dac7d440
commit
dcbb7359ee
2 changed files with 5 additions and 1 deletions
|
@ -13,6 +13,10 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
|
||||||
- Generate random password
|
- Generate random password
|
||||||
- Print the expiration time of TOTP code
|
- Print the expiration time of TOTP code
|
||||||
|
|
||||||
|
## Changed
|
||||||
|
|
||||||
|
- Prefix error message with ERROR
|
||||||
|
|
||||||
## v1.0.0 - 2019-07-12
|
## v1.0.0 - 2019-07-12
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
|
@ -90,7 +90,7 @@ func (c *Cli) generatePassword(length int, letter bool, digit bool, special bool
|
||||||
|
|
||||||
// error print a message and exit)
|
// error print a message and exit)
|
||||||
func (c *Cli) error(msg string) {
|
func (c *Cli) error(msg string) {
|
||||||
fmt.Println(msg)
|
fmt.Printf("ERROR: %s\n", msg)
|
||||||
os.Exit(2)
|
os.Exit(2)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue