From: martin.holst@gmail.com Date: Wed, 26 Jun 2013 09:18:31 +0000 (+0000) Subject: Improved error handling X-Git-Tag: v1.0.0~80^2~17 X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/ea833d39fffb17fb5b3a68c92299616ecc5675ee?ds=sidebyside Improved error handling --- diff --git a/client/read14a.lua b/client/read14a.lua index e9f9851f..1d66057c 100644 --- a/client/read14a.lua +++ b/client/read14a.lua @@ -74,7 +74,11 @@ local library = { command = Command:new{cmd = cmds.CMD_READER_ISO_14443a, arg1 = ISO14A_COMMAND.ISO14A_CONNECT} - core.SendCommand(command:getBytes()) + err = core.SendCommand(command:getBytes()) + if err then + print(err) + return nil, err + end local result = core.WaitForResponseTimeout(cmds.CMD_ACK,TIMEOUT) if result then local count,cmd,arg0,arg1,arg2 = bin.unpack('LLLL',result)