How to test if Import was successful? [duplicate]

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'm not sure but isn't Check something you could use? – Kuba Oct 29 '15 at 12:11
• welp, this is embarrassing. Yes, Check should do the trick. – Sosi Oct 29 '15 at 12:13