Skip to content

Commit acad9c8

Browse files
authored
Fix/shared lib view failure handling (#2475)
1 parent 21722ef commit acad9c8

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

lib/src/SharedLibManager.cc

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,15 @@ void SharedLibManager::managerLibs()
204204
LOG_TRACE << "drogon_ctl create view " << filename
205205
<< " -o " << outDir;
206206
auto r = safeExec(genArgs);
207-
// TODO: handle r
208-
(void)(r);
207+
if (r != 0)
208+
{
209+
LOG_ERROR
210+
<< "Failed to generate source code for "
211+
<< filename;
212+
213+
dlStat.handle = oldHandle;
214+
return;
215+
}
209216
dlStat.handle =
210217
compileAndLoadLib(srcFile, oldHandle);
211218
}

0 commit comments

Comments
 (0)