refactor: use v0.4 Error type for error handling

This commit is contained in:
sxyazi
2024-12-24 17:53:35 +08:00
parent c7feb90930
commit 71c4fc2e6f
4 changed files with 5 additions and 5 deletions

View File

@@ -30,7 +30,7 @@ return {
if not status or not status.success then
ya.notify {
title = "Chmod",
content = string.format("Chmod with selected files failed, exit code %s", status and status.code or err),
content = string.format("Chmod on selected files failed, error: %s", status and status.code or err),
level = "error",
timeout = 5,
}