handle err  when convert yaml to protobuf
@@ -55,6 +55,10 @@ func main() {
data, err := ioutil.ReadFile(configPath)
protobufData, err := yaml2proto.Yaml2Proto(data)
+ if err != nil {
+ fmt.Printf("Failed to convert yaml to protobuf: %v\n", err)
+ os.Exit(1)
+ }
config := &config.Configuration{}
if err := proto.Unmarshal(protobufData, config); err != nil {
