Skip to content

Commit 93aaf60

Browse files
Update BetterCoros.cs
1 parent d72509f commit 93aaf60

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Code/Helpers/BetterCoros.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@ private static IEnumerator<float> Wrapper(IEnumerator<float> routine, Script scr
2323
{
2424
try
2525
{
26-
if (!routine.MoveNext()) break;
26+
if (!routine.MoveNext()) yield break;
2727
}
2828
catch (ScriptRuntimeError scrErr)
2929
{
3030
onException?.Invoke(scrErr);
31-
scr.Error(scrErr.Message!);
31+
scr.Error($"SER was not able to predict this error before running the script: " +
32+
$"{scrErr.Message ?? "ERROR UNSPECIFIED"}");
3233
yield break;
3334
}
3435
catch (DeveloperFuckedUpException devErr)

0 commit comments

Comments
 (0)