error handling about getLSB()

pull/4/head
WAKAYAMA Shirou 11 years ago
parent b4a1a26e11
commit 710c02905f

@ -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"

Loading…
Cancel
Save