Skip to content

Commit 4f1b6b7

Browse files
committed
Additional fixes for Sync
1 parent 655d598 commit 4f1b6b7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Release/tests/Functional/http/client/outside_tests.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
#include "stdafx.h"
2727
#include "cpprest/rawptrstream.h"
28+
#include <stdexcept>
2829

2930
using namespace web;
3031
using namespace utility;
@@ -124,12 +125,12 @@ TEST_FIXTURE(uri_address, outside_ssl_json,
124125
auto iSnippet = i.as_object().find(U("snippet"));
125126
if (iSnippet == i.as_object().end())
126127
{
127-
throw std::exception("snippet key not found");
128+
throw std::runtime_error("snippet key not found");
128129
}
129130
auto iTitle = iSnippet->second.as_object().find(U("title"));
130131
if (iTitle == iSnippet->second.as_object().end())
131132
{
132-
throw std::exception("title key not found");
133+
throw std::runtime_error("title key not found");
133134
}
134135
auto name = iTitle->second.serialize();
135136
count++;

0 commit comments

Comments
 (0)