diff options
author | Franck Cuny <franckcuny@gmail.com> | 2016-11-11 14:25:06 -0800 |
---|---|---|
committer | Franck Cuny <franckcuny@gmail.com> | 2016-11-11 14:25:06 -0800 |
commit | b324d76d6307461e0fb059a3175d76c29e9d443e (patch) | |
tree | 8f311476710ab8e92c38c74e4e75effcb37e37f4 | |
parent | squash! Update README with a couple of missing settings. (diff) | |
download | pants.el-b324d76d6307461e0fb059a3175d76c29e9d443e.tar.gz |
Use `user-error` to report error.
This is the function to use to report errors to the user.
-rw-r--r-- | pants.el | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pants.el b/pants.el index a09e3d8..548aa83 100644 --- a/pants.el +++ b/pants.el @@ -172,7 +172,7 @@ (let ((build-file (pants--get-build-file-for-current-buffer))) (if build-file (find-file (concat build-file pants-build-file)) - (error "Could not find %s" pants-build-file)))) + (user-error "Could not find %s" pants-build-file)))) ;;;###autoload (defun pants-run-binary () @@ -181,7 +181,7 @@ (let ((build-file (pants--get-build-file-for-current-buffer))) (if build-file (pants--build-target-list build-file 'pants--build-action) - (error "Could not find %s" pants-build-file)))) + (user-error "Could not find %s" pants-build-file)))) ;;;###autoload (defun pants-run-python-repl () @@ -190,7 +190,7 @@ (let ((build-file (pants--get-build-file-for-current-buffer))) (if build-file (pants--build-target-list build-file 'pants--python-repl-action) - (error "Could not find %s" pants-build-file)))) + (user-error "Could not find %s" pants-build-file)))) ;;;###autoload (defun pants-run-test () @@ -199,7 +199,7 @@ (let ((build-file (pants--get-build-file-for-current-buffer))) (if build-file (pants--build-target-list build-file 'pants--test-action) - (error "Could not find %s" pants-build-file)))) + (user-error "Could not find %s" pants-build-file)))) ;;;###autoload (defun pants-run-fmt () @@ -208,6 +208,6 @@ (let ((build-file (pants--get-build-file-for-current-buffer))) (if build-file (pants--build-target-list build-file 'pants--fmt-action) - (error "Could not find %s" pants-build-file)))) + (user-error "Could not find %s" pants-build-file)))) (provide 'pants) |