Include file in error when set

This commit is contained in:
Michiel Borkent 2019-12-22 17:42:21 +01:00
parent ebc9f6479d
commit fc081bda8e
3 changed files with 6 additions and 1 deletions

2
sci

@ -1 +1 @@
Subproject commit 9144f5ae29dc9fb710a58580411664647e848be5
Subproject commit bb2fd687b962bad81088679157eb1d70b7ffc255

View file

@ -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

View file

@ -0,0 +1 @@
(/ 1 0)