This is a pun on 'didnt tell a soul'  which means he didn't tell anyone, but 'sole' is used in it's place because it sounds exactly the same and 'sole' is a type of fish
A fisherman hated fish and chips but he didn ' t tell a sole .