Markus Pesch
5220eac16b
changes: - remove remote operations - add function to write measured values into a channel - add get humidity sensors from config - add get temperature sensors from config - remove FileLogger - exclude some functions from pkf into internal
15 lines
249 B
Go
15 lines
249 B
Go
package prittyprint
|
|
|
|
import "fmt"
|
|
|
|
func FormatErrors(errors []error) error {
|
|
if len(errors) > 0 {
|
|
errMsg := ""
|
|
for _, err := range errors {
|
|
errMsg = fmt.Sprintf("%v\n%v", errMsg, err.Error())
|
|
}
|
|
return fmt.Errorf(errMsg)
|
|
}
|
|
return nil
|
|
}
|