Skip to content

Commit

Permalink
Merge pull request jpbarrette#15 from Aidoboy/master
Browse files Browse the repository at this point in the history
Fixed linkage of ccurlcpp::UnsetOption::UnsetOption
  • Loading branch information
jpbarrette committed Oct 9, 2016
2 parents cedefa7 + d025e42 commit b8fe7dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/curlpp/Option.inl
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ typename Option<OptionType>::ReturnType
Option<OptionType>::getValue() const
{
if(mContainer == NULL)
throw UnsetOption(std::string("You are trying to retreive the value of an unset option"));
throw UnsetOption("You are trying to retreive the value of an unset option");

return mContainer->getValue();
}
Expand Down Expand Up @@ -145,7 +145,7 @@ OptionTrait<OptionType, option>::updateHandleToMe(internal::CurlHandle * handle)
{
if(this->mContainer == NULL)
{
throw UnsetOption(std::string("You are trying to set an unset option to a handle"));
throw UnsetOption("You are trying to set an unset option to a handle");
}

internal::OptionSetter<OptionType, option>::setOpt(handle, this->mContainer->getHandleOptionValue());
Expand Down

0 comments on commit b8fe7dc

Please sign in to comment.