Skip to content

Commit

Permalink
Fixing Show error messages for sanity-check #287
Browse files Browse the repository at this point in the history
  • Loading branch information
stonemaster committed Jun 17, 2016
1 parent 9a7ff6f commit 1f7c00a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/app.d
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ private void doSanityCheck(ContentProvider contentProvider, IExecProvider execPr
section.language, section.title);
auto result = execProvider.compileAndExecute(section.sourceCode);
enforce(result.success,
"[%s] Sanity check: Source code for section '%s' doesn't compile!".format(section.language, section.title));
"[%s] Sanity check: Source code for section '%s' doesn't compile:\n%s"
.format(section.language, section.title, result.output));
}
}

Expand Down

0 comments on commit 1f7c00a

Please sign in to comment.