NXP-9053 - improve error log and raise exception