Skip to content

Commit

Permalink
check actors in process
Browse files Browse the repository at this point in the history
  • Loading branch information
metelkin committed May 20, 2024
1 parent 888bb3a commit e4d1d20
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/core/process.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,17 @@ class Process extends Record {

return clonedComponent;
}
bind(namespace) {
super.bind(namespace);
let {logger} = this.namespace.container;

// check and warn if actors is empty
if (this.actors.length === 0) {
let msg = `Process "${this.index}" has no actors.`
logger.warn(msg, {type: 'BindingError', space: this.space});
}

}
get processExpr(){
return actors2rct(this.actors);
}
Expand Down

0 comments on commit e4d1d20

Please sign in to comment.