Updated the Area drawRect: adding error message to look like the ones that come out of the new class system.

This commit is contained in:
Pietro Gagliardi 2014-04-04 21:35:14 -04:00
parent 7ea493873c
commit 8c109a0ae9
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ func mkAreaClass() error {
// addAreaViewDrawMethod() is in bleh_darwin.m // addAreaViewDrawMethod() is in bleh_darwin.m
ok := C.addAreaViewDrawMethod(class) ok := C.addAreaViewDrawMethod(class)
if ok != C.BOOL(C.YES) { if ok != C.BOOL(C.YES) {
return fmt.Errorf("error overriding Area drawRect: method; reason unknown") return fmt.Errorf("unable to add selector drawRect: to class %s (needed for actually drawing Areas; reason unknown)", __goArea)
} }
_goArea = id _goArea = id
return nil return nil