aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp/meta/read_source_files.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2017-11-20 13:44:08 -0500
committerRalph Amissah <ralph@amissah.com>2019-04-10 15:14:14 -0400
commitc8f3ea1fe9389f720546534ca57b050f16e34a8c (patch)
treea3759fde79fe71ca3d02257b69912f9bac6770ad /src/sdp/meta/read_source_files.d
parentprocess filesystem/unzipped sisupod.zip (diff)
process pod dir with sisudoc.txt (or file)
- process multiple files named in sisudoc.txt - works with multilingual doc with inserts - regex fixes were needed
Diffstat (limited to 'src/sdp/meta/read_source_files.d')
-rw-r--r--src/sdp/meta/read_source_files.d11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/sdp/meta/read_source_files.d b/src/sdp/meta/read_source_files.d
index 9700cb6..0443ded 100644
--- a/src/sdp/meta/read_source_files.d
+++ b/src/sdp/meta/read_source_files.d
@@ -55,7 +55,8 @@ static template SiSUrawMarkupContent() {
final private string readInMarkupSource(in char[] fn_src) {
enforce(
exists(fn_src)!=0,
- "file not found"
+ "file not found: «" ~
+ fn_src ~ "»"
);
string source_txt_str;
try {
@@ -96,7 +97,8 @@ static template SiSUrawMarkupContent() {
static auto rgx = Rgx();
enforce(
fn_src.match(rgx.src_pth),
- "not a sisu markup filename"
+ "not a sisu markup filename: «" ~
+ fn_src ~ "»"
);
auto source_txt_str = readInMarkupSource(fn_src);
return source_txt_str;
@@ -115,12 +117,13 @@ static template SiSUrawMarkupContent() {
return t;
}
final char[][] getInsertMarkupSourceContentRawLineArray(
- in char[] fn_src_insert,
+ in char[] fn_src_insert,
Regex!(char) rgx_file
) {
enforce(
fn_src_insert.match(rgx_file),
- "not a sisu markup filename"
+ "not a sisu markup filename: «" ~
+ fn_src_insert ~ "»"
);
auto source_txt_str = readInMarkupSource(fn_src_insert);
auto source_line_arr = markupSourceLineArray(source_txt_str);