From 41ccdd90aff14086efbf5e0dd37dc219a3cfeaa2 Mon Sep 17 00:00:00 2001 From: intoccabil Date: Thu, 19 Dec 2019 16:26:53 +0200 Subject: [PATCH] #v3.2.1912.0-rc - Check correct exception for "object not found" (#61) --- BitPaySetup/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BitPaySetup/Program.cs b/BitPaySetup/Program.cs index a61fa8a..176a9a1 100644 --- a/BitPaySetup/Program.cs +++ b/BitPaySetup/Program.cs @@ -486,7 +486,7 @@ private static bool TestTokenSuccess(string facade) } catch (Exception e) { - if (e.Message.ToLower().Contains("object not found")) + if (e.InnerException.Message.ToLower().Contains("object not found")) { return true; }