File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -266,10 +266,13 @@ def configure_doxyfile(
266266 project_source_dir
267267 )
268268 # Generate doxygen documentation
269- subprocess .call ('doxygen {}' .format (doxyfile_out ), shell = True )
269+ doxygen_ret = subprocess .call ('doxygen {}' .format (doxyfile_out ), shell = True )
270+ if doxygen_ret != 0 :
271+ print ('Doxygen failed with return code {}' .format (doxygen_ret ))
272+ sys .exit (doxygen_ret )
270273
271274 # Generate SWIG code.
272- subprocess .call ('swig -python -doxygen -I{}/include \
275+ swig_ret = subprocess .call ('swig -python -doxygen -I{}/include \
273276 -outdir {}/fastdds_python/src/swig -c++ -interface \
274277 _fastdds_python -o \
275278 {}/fastdds_python/src/swig/fastddsPYTHON_wrap.cxx \
@@ -279,6 +282,10 @@ def configure_doxyfile(
279282 fastdds_python_repo_name ,
280283 fastdds_python_repo_name
281284 ), shell = True )
285+ if swig_ret != 0 :
286+ print ('SWIG failed with return code {}' .format (swig_ret ))
287+ sys .exit (swig_ret )
288+
282289 fastdds_python_imported_location = '{}/fastdds_python/src/swig' .format (
283290 fastdds_python_repo_name )
284291 autodoc_mock_imports = ["_fastdds_python" ]
You can’t perform that action at this time.
0 commit comments