Changeset 27 in code


Ignore:
Timestamp:
Nov 17, 2022, 7:22:23 PM (2 years ago)
Author:
fox
Message:

Improve pubdir parameter reporting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cli/publish.ml

    r26 r27  
    1010        let kv = Logarion.File_store.of_kv_file () in
    1111        let predicate t = List.mem t.Text.id ids in
    12         let pubdir = match pubdir with Some d -> d | None ->
    13                 try Logarion.Store.KV.find "Pubdir" kv with Not_found ->
    14                 try Sys.getenv "txtpubdir" with Not_found -> ""
     12        let pubdir_source, pubdir = match pubdir with Some d -> "--pubdir ", d | None ->
     13                try "txt.conf:Pubdir", Logarion.Store.KV.find "Pubdir" kv with Not_found ->
     14                try "$txtpubdir", Sys.getenv "txtpubdir" with Not_found -> "$txtpubdir", ""
    1515        in
    1616        let targets = targets pubdir in
    1717        if targets = [] then
    18                 Printf.eprintf "No target directories in $pubdir='%s'\n" pubdir
     18                Printf.eprintf "No target directories in %s='%s'\n" pubdir_source pubdir
    1919        else begin
    2020                let pub_dirs = List.map (fun x -> snd x) targets in
Note: See TracChangeset for help on using the changeset viewer.