Python 2, 6460 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
Try it online-4 bytes thanks to @Rod
def F(a,ss=input(): while a: x=a.pop() if s-x in a:r=s-x,x print r