Again, I'd base it on importance. If, in this example, the trap was important, then I would have more than likely made it a puzzle (and left clues about it along the way).
If the trap isn't important, then letting the player know what happens if the Investigation rolls fails imparts the...