Skip to content

Commit 76364f6

Browse files
author
Blake Gross
committed
Fixed Eror in unit tests wher exception did not throw correclty
1 parent 99f85b4 commit 76364f6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Release/src/json/json_parsing.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1199,7 +1199,9 @@ std::unique_ptr<web::json::details::_Value> JSON_Parser<CharType>::_ParseValue(t
11991199

12001200
default:
12011201
{
1202-
return utility::details::make_unique<web::json::details::_Null>();
1202+
parseAttempt.didSucceed = false;
1203+
parseAttempt.errorMsg = _XPLATSTR("Unexpected token");
1204+
goto getNextTokenError;
12031205
}
12041206
}
12051207

0 commit comments

Comments
 (0)