Exception cleanup. Code cleanup.
This commit is contained in:
@@ -205,7 +205,7 @@ namespace Cryville.Crtr.Event {
|
||||
|
||||
public void AttachHandler(ContainerHandler h) {
|
||||
if (Handler != null)
|
||||
throw new InvalidOperationException();
|
||||
throw new InvalidOperationException("Handler attached twice");
|
||||
Handler = h;
|
||||
h.cs = this;
|
||||
}
|
||||
|
Reference in New Issue
Block a user