Check and document error format, #2191.

This commit is contained in:
Wilson Snyder
2020-03-14 21:48:26 -04:00
parent 0a755e6ecf
commit ee8dd32c04
5 changed files with 104 additions and 15 deletions
+5 -2
View File
@@ -376,8 +376,11 @@ string FileLine::warnOther() const {
string FileLine::source() const {
if (VL_UNCOVERABLE(!m_contentp)) {
if (debug() || v3Global.opt.debugCheck()) return "%Error-internal-no-contents";
else return "";
if (debug() || v3Global.opt.debugCheck()) {
return "%Error: internal tracking of file contents failed";
} else {
return "";
}
}
return m_contentp->getLine(m_contentLineno);
}