What does this mean?

I started spotting this afternoon and its 8 days before my period. I took a test right after and I had a faint line. I went and got a digital one and took it 30-45 minutes after and it said not pregnant. What does it mean?