diff options
| author | ShifftC <[email protected]> | 2025-01-27 15:35:08 +0100 |
|---|---|---|
| committer | ShifftC <[email protected]> | 2025-01-27 16:10:45 +0100 |
| commit | 7222c603fa360b1c2d41907d936af7f4b166fbcf (patch) | |
| tree | 1dce368712c0fdcba6395b8ba355edbe9578fe36 | |
| parent | c775dcb940f93f5254d487d825ae0c33085a1d91 (diff) | |
Make extractor/archiver errors more clear
| -rw-r--r-- | xmake/modules/utils/archive/archive.lua | 2 | ||||
| -rw-r--r-- | xmake/modules/utils/archive/extract.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/utils/archive/archive.lua b/xmake/modules/utils/archive/archive.lua index 804229638..5d24c506d 100644 --- a/xmake/modules/utils/archive/archive.lua +++ b/xmake/modules/utils/archive/archive.lua @@ -306,7 +306,7 @@ function _archive(archivefile, inputfiles, extension, archivers, opt) return true end end - raise("cannot archive %s, %s!", path.filename(archivefile), errors or "archivers not found!") + raise("cannot archive %s, %s!", path.filename(archivefile), errors or "no archiver found") end -- only archive tar file diff --git a/xmake/modules/utils/archive/extract.lua b/xmake/modules/utils/archive/extract.lua index 7fd936041..196e32d67 100644 --- a/xmake/modules/utils/archive/extract.lua +++ b/xmake/modules/utils/archive/extract.lua @@ -446,7 +446,7 @@ function _extract(archivefile, outputdir, extension, extractors, opt) return true end end - raise("cannot extract %s, %s!", path.filename(archivefile), errors or "extractors not found!") + raise("cannot extract %s, %s!", path.filename(archivefile), errors or "no extractor found") end -- extract file |
