commit | 9b2bddc732b8a09b7091f983ee8161f1db277cae | [log] [tgz] |
---|---|---|
author | Jiakai Zhang <jiakaiz@google.com> | Thu Feb 16 17:10:54 2023 +0000 |
committer | Jiakai Zhang <jiakaiz@google.com> | Tue Feb 21 15:03:00 2023 +0000 |
tree | 8339b713165c582d4969ff7d678aa060a5aa66ab | |
parent | 0d58dce3f15e02a3581a26b6e2159b52b115c78b [diff] |
Don't log error when deleting a profile that doesn't exist. Before this change, after `std::filesystem::remove` returns false, artd logs an error message unless the `ec` out-parameter is ENOENT. However, when the file doesn't exist, the function actually sets `ec` to 0 instead of ENOENT. This CL fixes the check. Bug: 266036814 Test: m test-art-host-gtest-art_artd_tests Ignore-AOSP-First: ART Services. Change-Id: I259ba7ea55dcdae7f7e269a3a5331a253c23737f