summaryrefslogtreecommitdiff
path: root/src/vimrun.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2007-05-05 17:54:07 +0000
committerBram Moolenaar <Bram@vim.org>2007-05-05 17:54:07 +0000
commit9964e468c0209f6b8286e0b08109817c845a3079 (patch)
tree3c53288cff0d4c2e32169d8eb4cd53cc343ad0bc /src/vimrun.c
parentd5ab34bd5ecc748d5502f149c476968e5ec2b7c9 (diff)
downloadvim-9964e468c0209f6b8286e0b08109817c845a3079.zip
updated for version 7.1a
Diffstat (limited to 'src/vimrun.c')
-rw-r--r--src/vimrun.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vimrun.c b/src/vimrun.c
index fed5076a5..c423e6cc5 100644
--- a/src/vimrun.c
+++ b/src/vimrun.c
@@ -99,7 +99,9 @@ main(void)
*/
retval = system(p);
- if (retval != 0)
+ if (retval == -1)
+ perror("vimrun system(): ");
+ else if (retval != 0)
printf("shell returned %d\n", retval);
if (!silent)