in the first version you are making a promise: basically you say "now i don't know it, but if in the future i will discover it, I promise I will tell you"
in the secon version you are talking about the past: "i didn’t tell you because I didn't know".