blob: 29db94947fb627140bf8586e4742d59214c64810 (
plain)
1
2
3
4
5
6
7
8
|
;; Utility functions.
(module util)
(defn load-plugin [name]
(let [(ok? val-or-err) (pcall require name)]
(if ok?
(val-or-err)
(print (.. "Could not load config: " val-or-err)))))
|