summaryrefslogtreecommitdiff
path: root/error.go
diff options
context:
space:
mode:
Diffstat (limited to 'error.go')
-rw-r--r--error.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/error.go b/error.go
index 2235ad5..983b522 100644
--- a/error.go
+++ b/error.go
@@ -5,7 +5,9 @@
package log
func Error(err error, a ...any) {
- if ! ERROR.Get() { return }
+ if !ERROR.Get() {
+ return
+ }
realPrintln("Error:", err)
realPrintln(a...)
}