Skip to content

Commit

Permalink
Merge pull request #1287 from tbzatek/mdraid-error
Browse files Browse the repository at this point in the history
udiskslinuxmdraid: Refactor error reporting
  • Loading branch information
tbzatek authored Jun 11, 2024
2 parents 27f29af + 5443657 commit 9ec81b6
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 98 deletions.
2 changes: 1 addition & 1 deletion src/udiskslinuxloop.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,8 @@ handle_delete (UDisksLoop *loop,
if (!bd_loop_teardown (device_file, &error))
{
g_prefix_error (&error, "Error deleting '%s': ", device_file);
g_dbus_method_invocation_take_error (invocation, error);
udisks_simple_job_complete (UDISKS_SIMPLE_JOB (job), FALSE, error->message);
g_dbus_method_invocation_take_error (invocation, error);
goto out;
}

Expand Down
Loading

0 comments on commit 9ec81b6

Please sign in to comment.