]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Logger.scl
(refs #7448) Logging exceptions
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / Logger.scl
index 84a5030ec73a11a454ea225d4768ffd00b5dbace..1a87375141b3511e5cdda7e624f3d4824f0ea75a 100644 (file)
@@ -1,5 +1,9 @@
 import "Logging"
+import "Prelude"
 
-main = info "Something happened."
+main = ()
+  where
+    info "Something happened."
+    print (read "XX" :: Double) `catch` (\(e :: Throwable) -> errorE "Something bad happened." e) 
 --
 ()
\ No newline at end of file