Some updates

This commit is contained in:
WolverinDEV
2020-05-14 15:08:28 +02:00
parent b987583770
commit c7751efa71
5 changed files with 30 additions and 2 deletions
+4
View File
@@ -123,6 +123,10 @@ void FileServerHandler::callback_transfer_aborted(const std::shared_ptr<transfer
case ErrorType::UNEXPECTED_DISK_EOF:
notify.put_unchecked(0, "status", (int) error::file_transfer_interrupted);
notify.put_unchecked(0, "msg", findError(error::file_transfer_interrupted).message);
case ErrorType::USER_REQUEST:
notify.put_unchecked(0, "status", (int) error::file_transfer_canceled);
notify.put_unchecked(0, "msg", findError(error::file_transfer_canceled).message);
break;
}
notify.put_unchecked(0, "extra_msg", error.error_message);