mirror of
https://github.com/status-im/QR-Code-generator.git
synced 2025-02-24 10:28:20 +00:00
Fixed C++ worker program due to changing exceptions from string to object (related to commit 4ca232b94998).
This commit is contained in:
parent
5073db4487
commit
868b387d9a
@ -91,9 +91,9 @@ int main() {
|
|||||||
std::cout << (qr.getModule(x, y) ? 1 : 0) << std::endl;
|
std::cout << (qr.getModule(x, y) ? 1 : 0) << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (const char *msg) {
|
} catch (const std::length_error &ex) {
|
||||||
if (strcmp(msg, "Data too long") != 0) {
|
if (strcmp(ex.what(), "Data too long") != 0) {
|
||||||
std::cerr << msg << std::endl;
|
std::cerr << ex.what() << std::endl;
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
std::cout << -1 << std::endl;
|
std::cout << -1 << std::endl;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user