Sketch fail.

When I open a sketch direcly (I know that this sketch works) and I push the bottom to send this to Arduino board, it appears a message with a sketch fail (only tells the taken space and that it has had an sketch fail when sending to board). When I open first the main arduino direct access in my desktop and then, I open the sketch I told, this sketch works perfectly. I can´t find any information of this and I guess you can help me. Thanks a lot!

This is a bug in version 1.6.10 of the IDE (one of several really nasty ones)

1.6.9 is not effected by this issue.