Skip to content

Commit

Permalink
fix for previous commit, use cool exceptions instead of std ones
Browse files Browse the repository at this point in the history
  • Loading branch information
matevz-digiverse committed Nov 7, 2017
1 parent c7bf793 commit 69640f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/cool/gcd_async.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class reader : public entrails::fd_io
: entrails::fd_io(DISPATCH_SOURCE_TYPE_READ, fd, cb, run, owner)
{
if (fd < 0)
throw std::range_error("reader::fd");
throw exception::out_of_range("reader::fd");
}

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/gcd_async.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ writer::writer(int fd
, bool owner)
{
if (fd < 0)
throw std::range_error("writer::fd");
throw exception::out_of_range("writer::fd");

// need temp variable as runner -> dispatch_queue_t conversion is
// private and std::make_shared is not a friend of the runner
Expand Down

0 comments on commit 69640f9

Please sign in to comment.