aboutsummaryrefslogtreecommitdiff
path: root/lib/headlines.ml
diff options
context:
space:
mode:
Diffstat (limited to 'lib/headlines.ml')
-rw-r--r--lib/headlines.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/headlines.ml b/lib/headlines.ml
index 5c740ed..cefe31d 100644
--- a/lib/headlines.ml
+++ b/lib/headlines.ml
@@ -118,8 +118,8 @@ let rec render
if String.equal (String.trim path) String.empty |> not
then (
let export = String.concat "\n" (Array.to_list content_pretty) in
- Export.to_path path ~content:export;
- render t { state with output = Some ("Export written to: " ^ path) })
+ let result = Export.to_path path ~content:export in
+ render t { state with output = Some result })
else render t { state with output = Some "Export Blank; skipping" })
; on_cancel =
(fun _ ->