Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions include/trial/protocol/core/detail/lightweight_test.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ void test_all_with_impl(FormattedOutputFunction& output,

#define TRIAL_PROTOCOL_TEST BOOST_TEST
#define TRIAL_PROTOCOL_TEST_EQUAL BOOST_TEST_EQ
#define TRIAL_PROTOCOL_TEST_NE BOOST_TEST_NE
#define TRIAL_PROTOCOL_TEST_THROWS BOOST_TEST_THROWS

#define TRIAL_PROTOCOL_TEST_THROW_EQUAL(EXPR, EXCEP, MSG) \
Expand Down
3 changes: 3 additions & 0 deletions include/trial/protocol/json/detail/error.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ public:

case insufficient_tokens:
return "algorithm used requires more tokens than available";

case field_not_found:
return "request field(s) not found";
}
return "trial.protocol.json error";
}
Expand Down
3 changes: 2 additions & 1 deletion include/trial/protocol/json/error.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ enum errc
expected_end_array,
expected_end_object,

insufficient_tokens
insufficient_tokens,
field_not_found
};

const std::error_category& error_category();
Expand Down
Loading