Skip to content

Commit 701f708

Browse files
Fatal error message after execute_process includes return code.
1 parent e0de6fa commit 701f708

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libsyclinterface/cmake/modules/GetLevelZeroHeaders.cmake

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function(get_level_zero_headers)
3939

4040
if(NOT result EQUAL 0)
4141
message(FATAL_ERROR
42-
"Could not update Level Zero sources."
42+
"Could not update Level Zero sources. Return code: ${result}"
4343
)
4444
endif()
4545
else()
@@ -54,7 +54,7 @@ function(get_level_zero_headers)
5454

5555
if(NOT result EQUAL 0)
5656
message(FATAL_ERROR
57-
"Could not clone Level Zero sources from github.com/oneapi-src/level-zero."
57+
"Could not clone Level Zero sources from github.com/oneapi-src/level-zero. Return code: ${result}"
5858
)
5959
endif()
6060
endif()
@@ -72,7 +72,7 @@ function(get_level_zero_headers)
7272

7373
if(NOT result EQUAL 0)
7474
message(FATAL_ERROR
75-
"Could not get the name for the latest release."
75+
"Could not get the name for the latest release. Return code: ${result}"
7676
)
7777
endif()
7878

@@ -88,7 +88,7 @@ function(get_level_zero_headers)
8888

8989
if(NOT result EQUAL 0)
9090
message(FATAL_ERROR
91-
"Could not checkout the latest release."
91+
"Could not checkout the latest release. Return code: ${result}"
9292
)
9393
endif()
9494

0 commit comments

Comments
 (0)