fix: improve error messages for config file reading

This commit is contained in:
jon brookes 2025-08-21 16:46:58 +01:00
parent 8347534736
commit faa7927376
2 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,7 @@ type CustomerConfig struct {
func ReadCustomerConfig(path string) (CustomerConfig, error) {
data, err := os.ReadFile(path)
if err != nil {
return CustomerConfig{}, fmt.Errorf("failed to read file: %w", err)
return CustomerConfig{}, fmt.Errorf("failed to read customer configfile: %w", err)
}
var cust CustomerConfig