This question already has an answer here:

I am importing and processing a bunch of files. Sometimes, for whatever reason, some of these files are not successfully imported so I'm looking for a way to Abort and Print some message containing useful information to debug.

I was looking into adapting this thread (specifically Mr.Wizard♦'s answer) for my purposes. Is there a way to verify if Import generated any errors?


marked as duplicate by Kuba, dr.blochwave, user9660, MarcoB, m_goldberg Oct 29 '15 at 14:00

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    $\begingroup$ How about hashing the file and the thing you imported into Mathematica, and comparing the hashes? $\endgroup$ – J. M. will be back soon Oct 29 '15 at 12:08
  • 2
    $\begingroup$ I'm not sure but isn't Check something you could use? $\endgroup$ – Kuba Oct 29 '15 at 12:11
  • 1
    $\begingroup$ welp, this is embarrassing. Yes, Check should do the trick. $\endgroup$ – Sosi Oct 29 '15 at 12:13