summaryrefslogtreecommitdiff
path: root/docs/dev
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2025-08-12 14:06:03 -0700
committerGlenn Smith <glenn@vector35.com>2025-08-12 14:06:03 -0700
commit2252cbc3605bc026bf854883ed8a2c67fc187027 (patch)
tree3b9d2bb224d1d8531925a8c10f244dc0b9855ec5 /docs/dev
parent6b2626fcba8d2aaac3543a455975a72c9eee72ec (diff)
Docs: use new log api
Diffstat (limited to 'docs/dev')
-rw-r--r--docs/dev/bnil-modifying.md4
1 files changed, 1 insertions, 3 deletions
diff --git a/docs/dev/bnil-modifying.md b/docs/dev/bnil-modifying.md
index d2f0217a..5c2d2690 100644
--- a/docs/dev/bnil-modifying.md
+++ b/docs/dev/bnil-modifying.md
@@ -615,10 +615,8 @@ It can be exceedingly helpful to put your entire modification script inside a `t
// Rethrowing the exception here might abort the program (if it is uncaught)
// So you probably want to just eat the exception and print an angry message
+ LogErrorWithStackTraceF("Got an exception"); // 5.2 and later
// throw;
- char* trace = BNGetCurrentStackTraceString();
- LogErrorF("Got an exception {}", trace);
- free(trace);
}
}
```