Skip to content

Commit

Permalink
Raise the correct Errno derived exception
Browse files Browse the repository at this point in the history
  • Loading branch information
fcheung committed Aug 27, 2020
1 parent 0fce980 commit 491b186
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/get_process_mem/darwin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def get_proc_pidinfo(pid)
if result == TaskInfo.size
data
else
raise "proc_pidinfo returned #{result}, errno is #{FFI.errno}"
raise SystemCallError.new("proc_pidinfo returned #{result}", FFI.errno);
end
end
end
Expand Down

0 comments on commit 491b186

Please sign in to comment.