summaryrefslogtreecommitdiff
path: root/docs/dev
diff options
context:
space:
mode:
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);
}
}
```