Fix error logging copy-pasta