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

Commit eaa3ff2

Browse files
authored
Fix error handling for dynamic loading. (#102)
* Fix error handling for dynamic loading. * Install newer version of cmake. * Fix cmake installation.
1 parent ac50154 commit eaa3ff2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

ci/setup_linux_environment.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,8 @@ sudo apt-get update -o Dir::Etc::sourcelist="sources.list.d/bazel.list" \
88
-o Dir::Etc::sourceparts="-" \
99
-o APT::Get::List-Cleanup="0"
1010
sudo apt-get install openjdk-8-jdk bazel
11+
sudo apt-get install software-properties-common
12+
13+
sudo add-apt-repository ppa:george-edison55/cmake-3.x -y
14+
sudo apt-get update
15+
sudo apt-get install cmake

src/dynamic_load_unix.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ DynamicallyLoadTracingLibrary(const char* shared_library,
7474
if (error_message.empty()) {
7575
error_message = error_code.message();
7676
}
77-
return make_unexpected(error_code);
77+
return make_unexpected(dynamic_load_failure_error);
7878
}
7979

8080
if (tracer_factory == nullptr) {

0 commit comments

Comments
 (0)