Skip to content

Commit 65d3d8c

Browse files
committed
Magic: Print the content of the buffer on failure
1 parent f2af919 commit 65d3d8c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ddoc/source/preprocessor.d

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,12 @@ auto compile(R)(R buffer, string[] arguments, string inputFile, string[string] m
114114
import std.process : execute;
115115
auto ret = execute(args);
116116
if (ret.status != 0)
117+
{
118+
stderr.writeln("File content:");
119+
stderr.writeln(buffer);
120+
stderr.writeln("----------------------------------------");
117121
stderr.writeln(ret.output);
122+
}
118123
return ret.status;
119124
}
120125

0 commit comments

Comments
 (0)