summaryrefslogtreecommitdiffstats
path: root/source/slang/slang.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang.cpp')
-rw-r--r--source/slang/slang.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp
index 4c9ecf8a8..e4bf251fc 100644
--- a/source/slang/slang.cpp
+++ b/source/slang/slang.cpp
@@ -1045,6 +1045,12 @@ SLANG_API int spCompile(
int anyErrors = req->executeActions();
return anyErrors;
}
+ catch (Slang::AbortCompilationException&)
+ {
+ // This should only be thrown if we already emitted a fatal error
+ // message, so there is no reason to print something else.
+ return 1;
+ }
catch (...)
{
req->mSink.diagnose(Slang::SourceLoc(), Slang::Diagnostics::compilationAborted);