The correct answer is E. No error.

The sentence is grammatically correct. The word "ought" is used to express a moral obligation or duty. In this sentence, it is used to say that the person did not do what they should have done. The word "not" is used to negate the verb "have." The word "done" is the past participle of the verb "do." The word "such" is used to introduce a noun phrase that specifies the thing that the person did. The word "filthy" is an adjective that describes the noun phrase "such a thing."

The sentence is clear and easy to understand. It does not contain any errors in grammar, spelling, or punctuation.