Skip to content

Commit 7ecf897

Browse files
committed
check fothe missing hook function
1 parent 72a6a61 commit 7ecf897

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

R/workflowRender.R

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,13 @@ const __runImpl = function(context, disables = list()) {
8888
#
8989
# get a specific workflow analysis app module, and then
9090
# execute the module under a given workflow context
91-
for(app in context$pipeline) {
92-
app = app_pool[[app]];
93-
skip = FALSE;
91+
for(let app_name in context$pipeline) {
92+
let app = app_pool[[app_name]];
93+
let skip = FALSE;
94+
95+
if (is.null(app$name)) {
96+
throw_err(`missing app module definition object for '${app_name}', please check of the app function has been hooked or not?`);
97+
}
9498

9599
if (app$name in disables) {
96100
if (as.logical(disables[[app$name]])) {

0 commit comments

Comments
 (0)