summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pypaste/__main__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pypaste/__main__.py b/pypaste/__main__.py
index 4ee6f03..c9c5cff 100644
--- a/pypaste/__main__.py
+++ b/pypaste/__main__.py
@@ -70,7 +70,7 @@ def pygmentize(
try:
s = get_style_by_name(style)
except Exception as e:
- print(e, file=sys.stderr)
+ log_error(f"failed to find style: {style}: {e}")
s = get_style_by_name("default")
formatter = HtmlFormatter(full=True, style=s, linenos="table")