Don't panic; throw error instead

This commit is contained in:
2025-04-24 22:29:28 -04:00
parent 9f6dcac314
commit c887f2a0cc
2 changed files with 3 additions and 3 deletions

View File

@@ -157,7 +157,7 @@ func stringToRGB(rgbString string) (*RGB, error) {
func loadColorsFromFile(filepath string) error {
data, err := os.ReadFile(filepath)
if err != nil {
panic(err)
return err
}
// Read color config file into a MapSlice
tempMapSlice := yaml.MapSlice{}