mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Check and document error format, #2191.
This commit is contained in:
+5
-2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user