Skip to content

Commit

Permalink
Make extractor/archiver errors more clear
Browse files Browse the repository at this point in the history
  • Loading branch information
Shiffted committed Jan 27, 2025
1 parent 3b7d17a commit 83b1438
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion xmake/modules/utils/archive/archive.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion xmake/modules/utils/archive/extract.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 83b1438

Please sign in to comment.