mirror of
https://github.com/onyx-dot-app/onyx.git
synced 2026-10-22 19:32:55 -05:00
10 lines
271 B
Go
10 lines
271 B
Go
package cmd
|
|
|
|
import "fmt"
|
|
|
|
// fatalErrorf builds an error whose text is the capitalized line a command
|
|
// logs with log.Fatal before it exits. It keeps the log messages unchanged.
|
|
func fatalErrorf(format string, args ...any) error {
|
|
return fmt.Errorf(format, args...)
|
|
}
|