Merge pull request #305 from weinrank/buildbot-test-extension

Improved error handling for examples and fixed a compiler warning