Skip to content

Commit 96da3e8

Browse files
committed
Improve error messages in cmake
1 parent 7e411e9 commit 96da3e8

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. Return code: ${result}"
42+
"Could not update Level Zero sources: ${error}. 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. Return code: ${result}"
57+
"Could not clone Level Zero sources from github.com/oneapi-src/level-zero: ${error}. 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. Return code: ${result}"
75+
"Could not get the name for the latest release: ${error}. 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. Return code: ${result}"
91+
"Could not checkout the latest release: ${error}. Return code: ${result}"
9292
)
9393
endif()
9494

0 commit comments

Comments
 (0)