NXP-14140: improve error logging