From f9ad44e8065b114273a7a8c696b195273989ae7f Mon Sep 17 00:00:00 2001 From: DrMaxNix Date: Tue, 6 Sep 2022 19:38:52 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20inform=20about=20missing=20sourc?= =?UTF-8?q?e=20file=20in=20dev=20env?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dev/index.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dev/index.php b/dev/index.php index 33608bc..4b4a352 100644 --- a/dev/index.php +++ b/dev/index.php @@ -103,6 +103,11 @@ }); document.addEventListener("DOMContentLoaded", function(){ + if(juice_program === false){ + juicescript.io.stderr.error("No source file found! Add one at 'dev/juice-program.jce'"); + return; + } + juicescript.parse(juice_program); });