github.com/vlifesystems/rulehunter@v0.0.0-20180501090014-673078aa4a83/cmd/errors.go (about) 1 // Copyright (C) 2016-2017 vLife Systems Ltd <http://vlifesystems.com> 2 // Licensed under an MIT licence. Please see LICENSE.md for details. 3 4 package cmd 5 6 import ( 7 "fmt" 8 ) 9 10 type errConfigLoad struct { 11 filename string 12 err error 13 } 14 15 func (e errConfigLoad) Error() string { 16 return fmt.Sprintf("couldn't load configuration file: %s: %s", e.filename, e.err) 17 }