From 28e4b04e9b0c9d6596e1b2524f7aae8e965f829b Mon Sep 17 00:00:00 2001 From: Oussama Teffahi Date: Fri, 15 Mar 2024 17:14:59 +0100 Subject: [PATCH] Update error message for features absence --- examples/unix/c11/z_get.c | 4 +++- examples/unix/c99/z_get.c | 4 +++- examples/windows/z_get.c | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/examples/unix/c11/z_get.c b/examples/unix/c11/z_get.c index 1050231c6..f98426a15 100644 --- a/examples/unix/c11/z_get.c +++ b/examples/unix/c11/z_get.c @@ -134,7 +134,9 @@ int main(int argc, char **argv) { } #else int main(void) { - printf("ERROR: Zenoh pico was compiled without Z_FEATURE_QUERY but this example requires it.\n"); + printf( + "ERROR: Zenoh pico was compiled without Z_FEATURE_QUERY or Z_FEATURE_MULTI_THREAD but this example requires " + "them.\n"); return -2; } #endif diff --git a/examples/unix/c99/z_get.c b/examples/unix/c99/z_get.c index 0edfe9f3e..7bec8e497 100644 --- a/examples/unix/c99/z_get.c +++ b/examples/unix/c99/z_get.c @@ -134,7 +134,9 @@ int main(int argc, char **argv) { } #else int main(void) { - printf("ERROR: Zenoh pico was compiled without Z_FEATURE_QUERY but this example requires it.\n"); + printf( + "ERROR: Zenoh pico was compiled without Z_FEATURE_QUERY or Z_FEATURE_MULTI_THREAD but this example requires " + "them.\n"); return -2; } #endif diff --git a/examples/windows/z_get.c b/examples/windows/z_get.c index 67433d374..597287afd 100644 --- a/examples/windows/z_get.c +++ b/examples/windows/z_get.c @@ -99,7 +99,9 @@ int main(int argc, char **argv) { } #else int main(void) { - printf("ERROR: Zenoh pico was compiled without Z_FEATURE_QUERY but this example requires it.\n"); + printf( + "ERROR: Zenoh pico was compiled without Z_FEATURE_QUERY or Z_FEATURE_MULTI_THREAD but this example requires " + "them.\n"); return -2; } #endif