Handle storage full error (#1958)

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
Georgii Surkov 2022-11-02 19:13:06 +03:00 committed by GitHub
parent a09d0a8bd4
commit c417d467f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -405,6 +405,10 @@ static void rpc_system_storage_write_process(const PB_Main* request, void* conte
if(!fs_operation_success) { if(!fs_operation_success) {
send_response = true; send_response = true;
command_status = rpc_system_storage_get_file_error(file); command_status = rpc_system_storage_get_file_error(file);
if(command_status == PB_CommandStatus_OK) {
// Report errors not handled by underlying APIs
command_status = PB_CommandStatus_ERROR_STORAGE_INTERNAL;
}
} }
if(send_response) { if(send_response) {