Skip to content

Commit

Permalink
minor - update error message
Browse files Browse the repository at this point in the history
co-authored-by: jrwrigh <[email protected]>
  • Loading branch information
jeremylt committed Oct 22, 2024
1 parent aeb3a72 commit 830fc37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions interface/ceed.c
Original file line number Diff line number Diff line change
Expand Up @@ -1347,7 +1347,7 @@ int CeedAddJitSourceRoot(Ceed ceed, const char *jit_source_root) {
Ceed ceed_parent;

CeedCall(CeedGetParent(ceed, &ceed_parent));
CeedCheck(!ceed_parent->num_jit_source_roots_readers, ceed, CEED_ERROR_ACCESS, "Cannot add JiT source root, read access has been granted");
CeedCheck(!ceed_parent->num_jit_source_roots_readers, ceed, CEED_ERROR_ACCESS, "Cannot add JiT source root, read access has not been restored");

CeedInt index = ceed_parent->num_jit_source_roots;
size_t path_length = strlen(jit_source_root);
Expand Down Expand Up @@ -1377,7 +1377,7 @@ int CeedAddJitDefine(Ceed ceed, const char *jit_define) {
Ceed ceed_parent;

CeedCall(CeedGetParent(ceed, &ceed_parent));
CeedCheck(!ceed_parent->num_jit_defines_readers, ceed, CEED_ERROR_ACCESS, "Cannot add JiT define, read access has been granted");
CeedCheck(!ceed_parent->num_jit_defines_readers, ceed, CEED_ERROR_ACCESS, "Cannot add JiT define, read access has not been restored");

CeedInt index = ceed_parent->num_jit_defines;
size_t define_length = strlen(jit_define);
Expand Down

0 comments on commit 830fc37

Please sign in to comment.