bad error handling

This commit is contained in:
secretspecter 2023-08-15 07:35:56 -06:00
parent 93c1b6cc4d
commit 624aff860e
3 changed files with 5 additions and 1 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
bin/
tags

View file

@ -1,3 +1,4 @@
(ql:register-local-projects)
(ql:quickload :geml/bin)
(sb-ext:save-lisp-and-die "bin/geml-server"

View file

@ -41,5 +41,7 @@
((getf options :version)
(format t "~a~%" (asdf:component-version (asdf:find-system 'geml))))
(t (let ((settings (cl-ini:parse-ini (getf options :config))))
(start-server settings))))))
(handler-case (start-server settings)
;; TODO handle more specific cases
(error (c) (format t "Server Error: ~A~%" c))))))))