Skip to content

Commit 90f5aef

Browse files
committed
Handle empty output from topo gen script
1 parent e864a17 commit 90f5aef

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

odc/Controller.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1707,6 +1707,12 @@ string Controller::topoFilepath(const CommonParams& common, const string& topolo
17071707
throw runtime_error(toString("Topology generation script failed with exit code: ", exitCode, ", stderr: ", quoted(err)));
17081708
}
17091709

1710+
if (out.empty()) {
1711+
OLOG(fatal, common) << "Topology generation script produced no output. Check the script for errors:";
1712+
logFatalLineByLine(common, topologyScript);
1713+
throw runtime_error("Topology generation script produced no output. Check the script for errors.");
1714+
}
1715+
17101716
OLOG(info, common) << "Topology generation script successfull. stderr: " << quoted(err) << ", stdout: " << quoted(shortOut) << shortSuffix;
17111717

17121718
content = out;

0 commit comments

Comments
 (0)