Просмотр исходного кода

ob-core: Fix error messages

* lisp/ob-core.el (org-babel--script-escape-inner,
  org-babel-script-escape): Error messages do not end with a full
  stop.
Nicolas Goaziou 10 лет назад
Родитель
Сommit
61eedb852f
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      lisp/ob-core.el

+ 2 - 2
lisp/ob-core.el

@@ -2730,13 +2730,13 @@ block but are passed literally to the \"example-block\"."
 	    (t  (cons ch out))))))
      (string-to-list str))
     (when (or in-single in-double)
-      (error "Unterminated string in `org-babel-script-escape'."))
+      (error "Unterminated string in `org-babel-script-escape'"))
     (apply #'string (reverse out))))
 
 (defun org-babel-script-escape (str &optional force)
   "Safely convert tables into elisp lists."
   (unless (stringp str)
-    (error "`org-babel-script-escape' expects a string."))
+    (error "`org-babel-script-escape' expects a string"))
   (let ((escaped
 	 (cond
 	  ((and (> (length str) 2)