TEd sez: Drat!"

drat (colloq; exclamation) an expression of anger, disgust or annoyance. 19th C. Probably a contraction of "God rot" (normally used with an object, as in "God rot (something)" or "God rot (someone)". The journey from 'drot to drat was apparently a short one.