Cleaned up style parser so that errors are properly dealt with.

Previously errors would only make it to stderr, but the calling
function would receive "success".