We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52ea908 commit 7fe0549Copy full SHA for 7fe0549
drgn_tools/corelens.py
@@ -750,7 +750,10 @@ def _do_main() -> None:
750
deferred_output: List[str] = []
751
if args.output_directory:
752
out_dir = Path(args.output_directory)
753
- out_dir.mkdir(exist_ok=True)
+ try:
754
+ out_dir.mkdir(exist_ok=True)
755
+ except OSError as e:
756
+ sys.exit(f"error creating output directory: {e}")
757
err_file = (out_dir / "corelens").open("w")
758
759
def info_msg(*args, **kwargs):
0 commit comments