Skip to content

Fix/shared lib view failure handling#2475

Merged
an-tao merged 2 commits intodrogonframework:masterfrom
AzmeerX:fix/shared-lib-view-failure-handling
Apr 1, 2026
Merged

Fix/shared lib view failure handling#2475
an-tao merged 2 commits intodrogonframework:masterfrom
AzmeerX:fix/shared-lib-view-failure-handling

Conversation

@AzmeerX
Copy link
Copy Markdown
Contributor

@AzmeerX AzmeerX commented Mar 30, 2026

Adds proper error handling for drogon_ctl create view execution.

Previously, the return value of safeExec was ignored. If view generation failed, the system would still attempt to compile the generated .cc file, which could be missing or invalid. This resulted in unnecessary compilation errors and potential use of stale or inconsistent state.

Changes

Check return code from safeExec, Log an error and skip compilation if generation fails. Preserved existing shared library handle instead of proceeding with invalid input

Testing

cd build
make
compiling successfully

@an-tao
Copy link
Copy Markdown
Member

an-tao commented Mar 30, 2026

@AzmeerX Thanks for your patch. pls rebase from the master branch.

@AzmeerX
Copy link
Copy Markdown
Contributor Author

AzmeerX commented Mar 30, 2026

rebasing done. also fixed the formatting issue

@an-tao
Copy link
Copy Markdown
Member

an-tao commented Mar 31, 2026

Why do file changes show content in the parseLine PR?

@AzmeerX AzmeerX force-pushed the fix/shared-lib-view-failure-handling branch from 3652b3f to 06b6de2 Compare March 31, 2026 11:10
@AzmeerX
Copy link
Copy Markdown
Contributor Author

AzmeerX commented Mar 31, 2026

Why do file changes show content in the parseLine PR?

Because of incorrect base. I’ve created a clean branch from latest master with only the intended change

@an-tao an-tao merged commit acad9c8 into drogonframework:master Apr 1, 2026
34 checks passed
@AzmeerX AzmeerX deleted the fix/shared-lib-view-failure-handling branch April 1, 2026 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants