Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

Commit

Permalink
Fix error handling for dynamic loading. (#102)
Browse files Browse the repository at this point in the history
* Fix error handling for dynamic loading.

* Install newer version of cmake.

* Fix cmake installation.
  • Loading branch information
rnburn authored Jan 16, 2019
1 parent ac50154 commit eaa3ff2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ci/setup_linux_environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ sudo apt-get update -o Dir::Etc::sourcelist="sources.list.d/bazel.list" \
-o Dir::Etc::sourceparts="-" \
-o APT::Get::List-Cleanup="0"
sudo apt-get install openjdk-8-jdk bazel
sudo apt-get install software-properties-common

sudo add-apt-repository ppa:george-edison55/cmake-3.x -y
sudo apt-get update
sudo apt-get install cmake
2 changes: 1 addition & 1 deletion src/dynamic_load_unix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ DynamicallyLoadTracingLibrary(const char* shared_library,
if (error_message.empty()) {
error_message = error_code.message();
}
return make_unexpected(error_code);
return make_unexpected(dynamic_load_failure_error);
}

if (tracer_factory == nullptr) {
Expand Down

0 comments on commit eaa3ff2

Please sign in to comment.