[core] Improved the error message for BundleUtil