mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
20 lines
464 B
Go
20 lines
464 B
Go
package app
|
|
|
|
// This file contains the error messages that get written to the terminal when
|
|
// something goes wrong with the configuration process.
|
|
//
|
|
// As a general rule, if one of these has to be shown the app should then die
|
|
// via os.Exit(1)
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/logrusorgru/aurora"
|
|
)
|
|
|
|
/* -------------------- Unexported Functions -------------------- */
|
|
|
|
func displayError(err error) {
|
|
fmt.Printf("%s %s\n\n", aurora.Red("Error:"), err.Error())
|
|
}
|