Reconnection
This commit is contained in:
parent
7dd1e8ce35
commit
9580dbaf12
1 changed files with 7 additions and 7 deletions
|
|
@ -734,7 +734,7 @@ impl OmikronConnection {
|
|||
self.send(&response).await
|
||||
}
|
||||
Err(e) => {
|
||||
let response = CommunicationValue::new(CommunicationType::error)
|
||||
let response = CommunicationValue::new(CommunicationType::error_internal)
|
||||
.with_id(cv.get_id())
|
||||
.add_data(DataTypes::error_type, DataValue::Str(e.to_string()));
|
||||
self.send(&response).await
|
||||
|
|
@ -751,7 +751,7 @@ impl OmikronConnection {
|
|||
self.send(&response).await
|
||||
}
|
||||
Err(e) => {
|
||||
let response = CommunicationValue::new(CommunicationType::error)
|
||||
let response = CommunicationValue::new(CommunicationType::error_internal)
|
||||
.with_id(cv.get_id())
|
||||
.add_data(DataTypes::error_type, DataValue::Str(e.to_string()));
|
||||
self.send(&response).await
|
||||
|
|
@ -796,7 +796,7 @@ impl OmikronConnection {
|
|||
self.send(&response).await
|
||||
}
|
||||
Err(e) => {
|
||||
let response = CommunicationValue::new(CommunicationType::error)
|
||||
let response = CommunicationValue::new(CommunicationType::error_internal)
|
||||
.with_id(cv.get_id())
|
||||
.add_data(DataTypes::error_type, DataValue::Str(e.to_string()));
|
||||
self.send(&response).await
|
||||
|
|
@ -864,7 +864,7 @@ impl OmikronConnection {
|
|||
let response = CommunicationValue::new(CommunicationType::success).with_id(cv.get_id());
|
||||
self.send(&response).await
|
||||
} else {
|
||||
let response = CommunicationValue::new(CommunicationType::error)
|
||||
let response = CommunicationValue::new(CommunicationType::error_internal)
|
||||
.with_id(cv.get_id())
|
||||
.add_data(DataTypes::error_type, DataValue::Str(error_message));
|
||||
self.send(&response).await
|
||||
|
|
@ -903,7 +903,7 @@ impl OmikronConnection {
|
|||
.with_id(cv.get_id());
|
||||
self.send(&response).await
|
||||
} else {
|
||||
let response = CommunicationValue::new(CommunicationType::error)
|
||||
let response = CommunicationValue::new(CommunicationType::error_internal)
|
||||
.with_id(cv.get_id())
|
||||
.add_data(DataTypes::error_type, DataValue::Str(error_message));
|
||||
self.send(&response).await
|
||||
|
|
@ -936,7 +936,7 @@ impl OmikronConnection {
|
|||
self.send(&response).await
|
||||
}
|
||||
Err(e) => {
|
||||
let response = CommunicationValue::new(CommunicationType::error)
|
||||
let response = CommunicationValue::new(CommunicationType::error_internal)
|
||||
.with_id(cv.get_id())
|
||||
.add_data(DataTypes::error_type, DataValue::Str(e.to_string()));
|
||||
self.send(&response).await
|
||||
|
|
@ -953,7 +953,7 @@ impl OmikronConnection {
|
|||
self.send(&response).await
|
||||
}
|
||||
Err(e) => {
|
||||
let response = CommunicationValue::new(CommunicationType::error)
|
||||
let response = CommunicationValue::new(CommunicationType::error_internal)
|
||||
.with_id(cv.get_id())
|
||||
.add_data(DataTypes::error_type, DataValue::Str(e.to_string()));
|
||||
self.send(&response).await
|
||||
|
|
|
|||
Loading…
Reference in a new issue