Skip to content

Commit

Permalink
Handle storage full error (#1958)
Browse files Browse the repository at this point in the history
Co-authored-by: あく <[email protected]>
  • Loading branch information
gsurkov and skotopes authored Nov 2, 2022
1 parent a09d0a8 commit c417d46
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions applications/services/rpc/rpc_storage.c
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,10 @@ static void rpc_system_storage_write_process(const PB_Main* request, void* conte
if(!fs_operation_success) {
send_response = true;
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) {
Expand Down

0 comments on commit c417d46

Please sign in to comment.