Fix error message for global initialization

Assuming that %s should refer to `globalClass`. Changed to string interpolation.