mirror of
https://github.com/SerenityOS/serenity
synced 2026-04-25 17:15:42 +02:00
tar: Return error instead of panic for XZ compression
Return a clear error message instead of TODO() panic when attempting to create XZ-compressed archives since compression is not yet implemented.
This commit is contained in:
@@ -238,7 +238,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||
output_stream = TRY(Compress::LzmaCompressor::create_container(move(output_stream), {}));
|
||||
|
||||
if (xz)
|
||||
TODO();
|
||||
return Error::from_string_literal("Creating XZ compressed archives is not supported");
|
||||
|
||||
Archive::TarOutputStream tar_stream(move(output_stream));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user