same error to text for all OSes (had unknown error on Mac)
This commit is contained in:
@@ -31,8 +31,6 @@ namespace pcsc {
|
|||||||
#else
|
#else
|
||||||
#include <PCSC/pcsclite.h>
|
#include <PCSC/pcsclite.h>
|
||||||
#include <PCSC/wintypes.h>
|
#include <PCSC/wintypes.h>
|
||||||
#include <PCSC/pcsclite.h>
|
|
||||||
#include <PCSC/winscard.h>
|
|
||||||
namespace pcsc {
|
namespace pcsc {
|
||||||
const std::string& strconv(const std::string& s) {
|
const std::string& strconv(const std::string& s) {
|
||||||
return s;
|
return s;
|
||||||
@@ -405,7 +403,6 @@ namespace pcsc {
|
|||||||
|
|
||||||
//! Get the describing text of the last error
|
//! Get the describing text of the last error
|
||||||
std::string error() const {
|
std::string error() const {
|
||||||
#ifdef WIN32
|
|
||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
switch (_state) {
|
switch (_state) {
|
||||||
case ERROR_BROKEN_PIPE:
|
case ERROR_BROKEN_PIPE:
|
||||||
@@ -637,9 +634,6 @@ namespace pcsc {
|
|||||||
<<(_state&0xffff);
|
<<(_state&0xffff);
|
||||||
}
|
}
|
||||||
return ss.str();
|
return ss.str();
|
||||||
#else
|
|
||||||
return pcsc_stringify_error(_state);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//................................................................methods
|
//................................................................methods
|
||||||
|
Reference in New Issue
Block a user