Skip to content

Commit

Permalink
Add error for #main: returning unexpected values
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Marr <git@stefan-marr.de>
  • Loading branch information
smarr committed Nov 28, 2016
1 parent 8286ac3 commit af9e0cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/som/vm/ObjectSystem.java
Expand Up @@ -367,7 +367,7 @@ public void executeApplication(final SObjectWithoutFields vmMirror, final Actor
handlePromiseResult((SPromise) result);
return;
} else {
throw new NotYetImplementedException();
VM.errorExit("The application's #main: method returned a " + result.toString() + ", but it needs to return a Promise or Integer as return value.");
}
} catch (InterruptedException | ExecutionException e) {
// TODO Auto-generated catch block
Expand Down

0 comments on commit af9e0cc

Please sign in to comment.