mirror of
https://gitlab.com/jessieh/simple-shortener.git
synced 2024-11-21 11:01:46 +00:00
Improve error messages
This commit is contained in:
parent
ab0e290e54
commit
faa8bf65f0
@ -48,7 +48,7 @@ ORDER BY created DESC")
|
|||||||
;; Ensure 'db/' folder exists
|
;; Ensure 'db/' folder exists
|
||||||
|
|
||||||
(when (not (fs_utils.dir_exists? "db"))
|
(when (not (fs_utils.dir_exists? "db"))
|
||||||
(print "🚨 ERROR: No 'db/' folder to place SQLite database files in.\n❓ Did you forget to mount a volume at '/simple-shortener/db'?")
|
(print "🚨 ERROR: No folder to place SQLite database files in.\n❓ Did you forget to mount a volume at '/simple-shortener/db'?")
|
||||||
(os.exit -1))
|
(os.exit -1))
|
||||||
|
|
||||||
;; ---------------------------------- ;;
|
;; ---------------------------------- ;;
|
||||||
|
@ -43,7 +43,7 @@ OR last_active <= strftime('%s', 'now', '-" config.session_max_idle_length_hours
|
|||||||
;; Ensure 'db/' folder exists
|
;; Ensure 'db/' folder exists
|
||||||
|
|
||||||
(when (not (fs_utils.dir_exists? "db"))
|
(when (not (fs_utils.dir_exists? "db"))
|
||||||
(print "🚨 ERROR: No 'db/' folder to place SQLite database files in.\n❓ Did you forget to mount a volume at '/simple-shortener/db'?")
|
(print "🚨 ERROR: No folder to place SQLite database files in.\n❓ Did you forget to mount a volume at '/simple-shortener/db'?")
|
||||||
(os.exit -1))
|
(os.exit -1))
|
||||||
|
|
||||||
;; ---------------------------------- ;;
|
;; ---------------------------------- ;;
|
||||||
|
Loading…
Reference in New Issue
Block a user