diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-05-31 16:56:37 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-05-31 16:56:37 +0000 |
commit | 05933840f0676dd1a90a7e2ad3f2a0672624b2cd (patch) | |
tree | 593940d16fdc678c275b2b2f21ac6df7c6aad959 /modules/errors.py | |
parent | d67ef01f629d2034fb847dae6aa0143c87161b8f (diff) | |
download | stable-diffusion-webui-gfx803-05933840f0676dd1a90a7e2ad3f2a0672624b2cd.tar.gz stable-diffusion-webui-gfx803-05933840f0676dd1a90a7e2ad3f2a0672624b2cd.tar.bz2 stable-diffusion-webui-gfx803-05933840f0676dd1a90a7e2ad3f2a0672624b2cd.zip |
rename print_error to report, use it with together with package name
Diffstat (limited to 'modules/errors.py')
-rw-r--r-- | modules/errors.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/modules/errors.py b/modules/errors.py index 41d8dc93..e408f500 100644 --- a/modules/errors.py +++ b/modules/errors.py @@ -3,11 +3,7 @@ import textwrap import traceback
-def print_error(
- message: str,
- *,
- exc_info: bool = False,
-) -> None:
+def report(message: str, *, exc_info: bool = False) -> None:
"""
Print an error message to stderr, with optional traceback.
"""
@@ -15,7 +11,7 @@ def print_error( print("***", line, file=sys.stderr)
if exc_info:
print(textwrap.indent(traceback.format_exc(), " "), file=sys.stderr)
- print("---")
+ print("---", file=sys.stderr)
def print_error_explanation(message):
|