better error handling for Thanks action.

more tests
raise exception instead of returning as string