Skip to content

Commit

Permalink
Merge pull request #106 from CoraleStudios/hotfix/ignore-resource-error
Browse files Browse the repository at this point in the history
Update SetEffect to ignore resource errors
  • Loading branch information
brandonscott committed Oct 28, 2015
2 parents 379e40b + d3b6302 commit 3a76cc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Corale.Colore/Core/NativeWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -471,8 +471,8 @@ internal static void SetEffect(Guid guid)
if (result)
return;

if (result == Result.RzAccessDenied)
Log.Warn("Ambigous RzAccessDenied error thrown from call to native function SetEffect.");
if (result == Result.RzResourceDisabled || result == Result.RzAccessDenied)
Log.WarnFormat("Ambiguous {0} error thrown from call to native function SetEffect.", result);
else
throw new NativeCallException("SetEffect", result);
}
Expand Down

0 comments on commit 3a76cc5

Please sign in to comment.