Skip to content

Commit 2252cbc

Browse files
committed
Docs: use new log api
1 parent 6b2626f commit 2252cbc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

docs/dev/bnil-modifying.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -615,10 +615,8 @@ It can be exceedingly helpful to put your entire modification script inside a `t
615615

616616
// Rethrowing the exception here might abort the program (if it is uncaught)
617617
// So you probably want to just eat the exception and print an angry message
618+
LogErrorWithStackTraceF("Got an exception"); // 5.2 and later
618619
// throw;
619-
char* trace = BNGetCurrentStackTraceString();
620-
LogErrorF("Got an exception {}", trace);
621-
free(trace);
622620
}
623621
}
624622
```

0 commit comments

Comments
 (0)