diff --git a/sci b/sci index 9144f5ae..bb2fd687 160000 --- a/sci +++ b/sci @@ -1 +1 @@ -Subproject commit 9144f5ae29dc9fb710a58580411664647e848be5 +Subproject commit bb2fd687b962bad81088679157eb1d70b7ffc255 diff --git a/test/babashka/main_test.clj b/test/babashka/main_test.clj index e0ad025f..7a63b3ce 100644 --- a/test/babashka/main_test.clj +++ b/test/babashka/main_test.clj @@ -315,6 +315,10 @@ (is (= 1 (bb nil "(binding [*command-line-args* 1] *command-line-args*)"))) (is (= 1 (bb nil "(binding [*input* 1] *input*)")))) +(deftest file-in-error-msg-test + (is (thrown-with-msg? Exception #"error.bb" + (bb nil (.getPath (io/file "test" "babashka" "scripts" "error.bb")))))) + ;;;; Scratch (comment diff --git a/test/babashka/scripts/error.bb b/test/babashka/scripts/error.bb new file mode 100644 index 00000000..f4333f8b --- /dev/null +++ b/test/babashka/scripts/error.bb @@ -0,0 +1 @@ +(/ 1 0)