diff --git a/asset/player.go b/asset/player.go index df18a0c..92d8955 100644 --- a/asset/player.go +++ b/asset/player.go @@ -16,7 +16,7 @@ func NewAudioPlayer() *AudioPlayer { bytes, err := Asset("quindar-tone.mp3") if err != nil { - log.Fatal("Can't find audio file") + log.Fatal("Failed to find audio file") } player, err := oto.NewPlayer(44100, 2, 2, 8192) diff --git a/component/asciibox/asciibox.go b/component/asciibox/asciibox.go index 6489f84..64a0127 100644 --- a/component/asciibox/asciibox.go +++ b/component/asciibox/asciibox.go @@ -33,7 +33,7 @@ func NewAsciiBox(c config.AsciiBoxConfig, palette console.Palette) *AsciiBox { fontStr, err := asset.Asset(options.FontName + asciiFontExtension) if err != nil { - panic("Can't load the font: " + err.Error()) + panic("Failed to load the font: " + err.Error()) } render := fl.NewAsciiRender() diff --git a/config/config.go b/config/config.go index 10bdfc7..8f2a71f 100644 --- a/config/config.go +++ b/config/config.go @@ -88,21 +88,21 @@ func (c *Config) findComponent(componentType ComponentType, componentTitle strin } panic(fmt.Sprintf( - "Can't find component type %v with title %v", componentType, componentTitle)) + "Failed to find component type %v with title %v", componentType, componentTitle)) } func readFile(location string) *Config { yamlFile, err := ioutil.ReadFile(location) if err != nil { - log.Fatalf("Can't read config file: %s", location) + log.Fatalf("Failed to read config file: %s", location) } cfg := new(Config) err = yaml.Unmarshal(yamlFile, cfg) if err != nil { - log.Fatalf("Can't read config file: %v", err) + log.Fatalf("Failed to read config file: %v", err) } return cfg @@ -111,11 +111,11 @@ func readFile(location string) *Config { func saveFile(config *Config, fileName string) { file, err := yaml.Marshal(config) if err != nil { - log.Fatalf("Can't marshal config file: %v", err) + log.Fatalf("Failed to marshal config file: %v", err) } err = ioutil.WriteFile(fileName, file, os.ModePerm) if err != nil { - log.Fatalf("Can't save config file: %v", err) + log.Fatalf("Failed to save config file: %v", err) } } diff --git a/storage/license.go b/storage/license.go index c2625f1..8bcb8de 100644 --- a/storage/license.go +++ b/storage/license.go @@ -25,7 +25,7 @@ func GetLicense() *License { err := yaml.Unmarshal(file, license) if err != nil { - log.Fatalf("Can't read license file: %v", err) + log.Fatalf("Failed to read license file: %v", err) } return license @@ -41,7 +41,7 @@ func InitLicense() { file, err := yaml.Marshal(license) if err != nil { - log.Fatalf("Can't marshal config file: %v", err) + log.Fatalf("Failed to marshal config file: %v", err) } initStorage()