pathetic fallacy

noun

1.
the fallacy of attributing human feelings to inanimate objects; ‘the friendly sun’ is an example of the pathetic fallacy