Skip to content

Commit

Permalink
fixed a bug where an error in a function would not be displayed in th…
Browse files Browse the repository at this point in the history
…e table that called it if the function was initialized during that function call.
  • Loading branch information
sutter-dave committed Jan 19, 2018
1 parent ef67f5e commit 37fda28
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web/apogee/data/FunctionTable.js
Expand Up @@ -36,6 +36,10 @@ apogee.FunctionTable.prototype.postInitializeAction = function() {
//pending check - we don't know if a function is pending until we
//actually call it. I didn't know how else to capture this in the
//calling code other than use an error. But this is not an error
if(this.hasError()) {
throw new Error("Error in dependency: " + this.getFullName());

}
if(this.getResultPending()) {
throw apogee.Codeable.MEMBER_FUNCTION_PENDING;
}
Expand Down

0 comments on commit 37fda28

Please sign in to comment.