Skip to content

Commit 8725033

Browse files
committed
minor - improve error message for uncompiled backends
1 parent d0c91ce commit 8725033

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

backends/ceed-backend-weak.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
// This function provides improved error messages for uncompiled backends
77
static int CeedInit_Weak(const char *resource, Ceed ceed) {
88
return CeedError(ceed, CEED_ERROR_UNSUPPORTED,
9-
"Backend not currently compiled: %s", resource);
9+
"Backend not currently compiled: %s\n"
10+
"Consult the installation instructions to compile this backend",
11+
resource);
1012
}
1113

1214
// This function provides a debug target for weak symbols

interface/ceed.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ int CeedInit(const char *resource, Ceed *ceed) {
709709
// LCOV_EXCL_STOP
710710
} else if (match_len != stem_length) {
711711
// LCOV_EXCL_START
712-
return CeedError(NULL, CEED_ERROR_MAJOR, "No suitable backend: %s "
712+
return CeedError(NULL, CEED_ERROR_MAJOR, "No suitable backend: %s\n"
713713
"Closest match: %s", resource, backends[match_idx].prefix);
714714
// LCOV_EXCL_STOP
715715
}

0 commit comments

Comments
 (0)