[fix] Throw error when callback is missing