handle all status packet results the same
diff --git a/client.go b/client.go
index ff7b628..6ef7ff1 100644
--- a/client.go
+++ b/client.go
@@ -203,7 +203,7 @@
handle, _ := unmarshalString(data)
return handle, nil
case ssh_FXP_STATUS:
- return "", unmarshalStatus(id, data)
+ return "", normaliseError(unmarshalStatus(id, data))
default:
return "", unimplementedPacketErr(typ)
}
@@ -284,7 +284,7 @@
filename, _ := unmarshalString(data) // ignore dummy attributes
return filename, nil
case ssh_FXP_STATUS:
- return "", unmarshalStatus(id, data)
+ return "", normaliseError(unmarshalStatus(id, data))
default:
return "", unimplementedPacketErr(typ)
}
@@ -439,7 +439,7 @@
attr, _ := unmarshalAttrs(data)
return attr, nil
case ssh_FXP_STATUS:
- return nil, unmarshalStatus(id, data)
+ return nil, normaliseError(unmarshalStatus(id, data))
default:
return nil, unimplementedPacketErr(typ)
}