Skip to content
This repository was archived by the owner on Jun 30, 2024. It is now read-only.

Commit 7b5e13e

Browse files
committed
check return status of build
1 parent f4d0b14 commit 7b5e13e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

rsmanage/rsmanage.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,10 +397,15 @@ def build(config, clone, ptx, gen, manifest, course):
397397
click.echo("Switching to book dir {}".format(course))
398398
os.chdir(course)
399399
if ptx:
400-
_build_ptx_book(config, gen, manifest, course)
400+
res = _build_ptx_book(config, gen, manifest, course)
401401

402402
else:
403-
_build_runestone_book(course)
403+
res = _build_runestone_book(course)
404+
405+
if res:
406+
click.echo("Build Succeeded")
407+
else:
408+
click.echo("Build Failed, see cli.log for details")
404409

405410

406411
#

0 commit comments

Comments
 (0)