ok, so this phrase meaning go often awry is usually used as a straight quote from the Burns poem To a Mouse but it is still as useful today as it always was!
GANG AFT AGLEY
Meaning of GANG AFT AGLEY in English
Scottish slang English vocabulary. Английский словарь шотландского сленга. 2012