Skip to content

Better error message for non-fixpoint#847

Merged
joshuafcole merged 5 commits intomasterfrom
fix/fixpoint-error
Jun 16, 2017
Merged

Better error message for non-fixpoint#847
joshuafcole merged 5 commits intomasterfrom
fix/fixpoint-error

Conversation

@cmontella
Copy link
Contributor

No description provided.

console.error("bad");
break;
if (total > iterationLimit) {
console.error(`Failed to fixpoint after ${iterationLimit} iterations`);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's word this such that it's more obvious the program is at fault. Maybe Error: Program failed to fixpoint after ${iterationLimit} iterations. This is likely due to an unbounded cycle in the program. or something. Other than that, looks fine.

Copy link
Contributor

@joshuafcole joshuafcole Jun 16, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not add those spaces after keywords like if and while though, we aren't doing that elsewhere.

Copy link
Contributor

@joshuafcole joshuafcole left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@joshuafcole joshuafcole merged commit 9c70e42 into master Jun 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants