Implement LZ4 strip and make tools write errors to err instead of out
This commit is contained in:
@@ -52,7 +52,7 @@ fn run_main() -> Result<(), Error> {
|
||||
|
||||
// We encoded the file to a temporary buffer and now need to write it
|
||||
if cmd.compress_lz4 {
|
||||
let buffer = tool_helper::compress::lz4(&buffer, 16)?;
|
||||
let buffer = tool_helper::compress::psx_default::lz4(&buffer)?;
|
||||
output_file.write(&buffer)?;
|
||||
}
|
||||
|
||||
@@ -69,7 +69,7 @@ fn run_main() -> Result<(), Error> {
|
||||
|
||||
fn main() {
|
||||
if let Err(error) = run_main() {
|
||||
println!("{}", error.text);
|
||||
eprintln!("{}", error.text);
|
||||
std::process::exit(error.exit_code);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user