Change error message for missing return

This commit is contained in:
Randy Heit 2016-02-20 23:13:44 -06:00
parent e7b9e7e955
commit 19af8a3a82

View file

@ -372,7 +372,7 @@ void AddImplicitReturn(FxSequence *code, const PPrototype *proto, FScanner &sc)
else
{ // Something was returned earlier in the sequence. Make it an error
// instead of adding an implicit one.
sc.ScriptError("Action list must return a value");
sc.ScriptError("Not all paths return a value");
}
}