diff options
author | Eric Schulte <schulte.eric@gmail.com> | 2010-12-21 20:17:18 -0700 |
---|---|---|
committer | Eric Schulte <schulte.eric@gmail.com> | 2010-12-21 20:17:18 -0700 |
commit | 9bf88fddfc530f2df7343e385148cdff9c97914d (patch) | |
tree | 2408428c34d7d598201b428504dffdf2bbef23c9 | |
parent | 9c4b936c0e91b2226b8d650124e9cfc90f4c301f (diff) | |
download | org-mode-9bf88fddfc530f2df7343e385148cdff9c97914d.tar.gz |
ob-sass: uses ob-eval for better error reporting
* lisp/ob-sass.el (org-babel-execute:sass): Uses ob-eval for better
error reporting.
-rw-r--r-- | lisp/ob-sass.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/ob-sass.el b/lisp/ob-sass.el index 7075daf..772e7ff 100644 --- a/lisp/ob-sass.el +++ b/lisp/ob-sass.el @@ -40,6 +40,7 @@ ;;; Code: (require 'ob) +(require 'ob-eval) (defvar org-babel-default-header-args:sass '()) @@ -55,7 +56,8 @@ This function is called by `org-babel-execute-src-block'." " " (org-babel-process-file-name in-file) " " (org-babel-process-file-name out-file)))) (with-temp-file in-file - (insert (org-babel-expand-body:generic body params))) (shell-command cmd) + (insert (org-babel-expand-body:generic body params))) + (org-babel-eval cmd "") (if file nil ;; signal that output has already been written to file (with-temp-buffer (insert-file-contents out-file) (buffer-string))))) |