convert.py: sys.stderr.write --> logger.error
This commit is contained in:
parent
e6b9d9179b
commit
3670e16e9c
1 changed files with 2 additions and 2 deletions
|
@ -1441,9 +1441,9 @@ def default_outfile(model_paths: list[Path], file_type: GGMLFileType) -> Path:
|
||||||
}[file_type]
|
}[file_type]
|
||||||
ret = model_paths[0].parent / f"ggml-model-{namestr}.gguf"
|
ret = model_paths[0].parent / f"ggml-model-{namestr}.gguf"
|
||||||
if ret in model_paths:
|
if ret in model_paths:
|
||||||
sys.stderr.write(
|
logger.error(
|
||||||
f"Error: Default output path ({ret}) would overwrite the input. "
|
f"Error: Default output path ({ret}) would overwrite the input. "
|
||||||
"Please explicitly specify a path using --outfile.\n")
|
"Please explicitly specify a path using --outfile.")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue