Python 2, 64 bytes
This short, until rules with exiting with code 1 are clarified. Now exits with error if nothing is found. -5 bytes thanks to @Peilonrayz
def F(a,s): while 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. -5 bytes thanks to @Peilonrayz
def F(a,s): while a: x=a.pop() if s-x in a:r=s-x,x print r