Skip to content

Commit

Permalink
use new internal error message API
Browse files Browse the repository at this point in the history
  • Loading branch information
skallweitNV committed Dec 6, 2024
1 parent 3af12c4 commit 44aac30
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/sgl/device/slang_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
try { \
expr; \
} catch (...) { \
/* TODO future slang versions should have API to query the error message */ \
/* const char* slang_error = slang::getLastInternalErrorMessage(); */ \
const char* slang_error = "unknown"; \
const char* slang_error = slang::getLastInternalErrorMessage(); \
throw sgl::SlangCompileError(fmt::format("Internal slang error: {}", slang_error)); \
}

Expand Down

0 comments on commit 44aac30

Please sign in to comment.