pts-core: More error logging work