From 32ec321a4abe1469a6df5fa5910fcb4c10db7d16 Mon Sep 17 00:00:00 2001 From: Shawn Xie Date: Thu, 4 May 2023 09:49:26 -0400 Subject: [PATCH] throw exception --- src/main/verify.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/verify.cpp b/src/main/verify.cpp index 4999fd54..d3522ef3 100644 --- a/src/main/verify.cpp +++ b/src/main/verify.cpp @@ -116,6 +116,7 @@ verifyNFTs( if(oldUriStr.compare(writtenUriStr) != 0){ BOOST_LOG_TRIVIAL(warning) <<"\nNFTokenID "<< to_string(nft.tokenID) << " failed to match URIs!\n"; + throw std::runtime_error("Failed to match!"); } else{ BOOST_LOG_TRIVIAL(info) <<"\nNFTokenID "<< to_string(nft.tokenID) << " URI matched!\n";