1
$\begingroup$

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?

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

0

Browse other questions tagged or ask your own question.