Throw an error on invalid doc-block ending