Python 2, 69 bytes
This short, until rules with exiting with code 1 are clarified. Now exits with error if nothing is found.
def F(a,s): while len(a): x=a.pop() if s-x in a:r=s-x,x print r This short, until rules with exiting with code 1 are clarified. Now exits with error if nothing is found.
def F(a,s): while len(a): x=a.pop() if s-x in a:r=s-x,x print r