From 710c02905ffbc22a9b18a3f9046cf9f07c7e0e24 Mon Sep 17 00:00:00 2001 From: WAKAYAMA Shirou Date: Tue, 27 May 2014 21:44:03 +0900 Subject: [PATCH] error handling about getLSB() --- host_linux.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/host_linux.go b/host_linux.go index 4960b0d..6bd7f49 100644 --- a/host_linux.go +++ b/host_linux.go @@ -155,7 +155,10 @@ func GetPlatformInformation() (string, string, string, error) { family := "" version := "" - lsb, _ := getLSB() + lsb, err := getLSB() + if err != nil{ + lsb = LSB{} + } if pathExists("/etc/oracle-release") { platform = "oracle"