error handling about getLSB()
This commit is contained in:
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…
Reference in New Issue