]> Kevux Git Server - fll/commitdiff
Cleanup: Fake should handle file specific errors for the clean operation.
authorKevin Day <thekevinday@gmail.com>
Wed, 4 Nov 2020 02:53:19 +0000 (20:53 -0600)
committerKevin Day <thekevinday@gmail.com>
Wed, 4 Nov 2020 02:53:19 +0000 (20:53 -0600)
The clean operation should use fll_error_file_print() instead of fll_error_print() for better error output for file related operations.

level_3/fake/c/private-clean.c

index 6b324450ec53325d077c2d1bed154a01232310f7..8a5a3a639bcdd8c869b1c45316329cafe50475ed 100644 (file)
@@ -40,7 +40,7 @@ extern "C" {
     }
 
     if (F_status_is_error(status)) {
-      fll_error_print(data.error, F_status_set_fine(status), "f_directory_remove", F_true);
+      fll_error_file_print(data.error, F_status_set_fine(status), "f_directory_remove", F_true, data.path_build.string, "remove", fll_error_file_type_directory);
       return status;
     }