Create a "standard", JSON-encoded error message for a VL server command.
The usage is like with vl-cw.
Function:
(defun vls-fail-fn (msg alist) (declare (xargs :guard (and (stringp msg) (alistp alist)))) (let ((__function__ 'vls-fail-fn)) (declare (ignorable __function__)) (b* ((err (with-local-ps (vl-fmt msg alist)))) (bridge::json-encode (list (cons :error err))))))
Theorem:
(defthm stringp-of-vls-fail-fn (b* ((json (vls-fail-fn msg alist))) (stringp json)) :rule-classes :type-prescription)