Showing Notifications While Activating Plugin

Check out : WP Error

And this link covers how the plugin activation error works: http://www.squarepenguin.com/wordpress/?p=6

And I don’t see any reason why you should ever chmod a directory to 777

error code: 523