aboutsummaryrefslogtreecommitdiff
path: root/composer.c
diff options
context:
space:
mode:
authorGalen Guyer <galen@galenguyer.com>2021-04-24 15:40:02 -0400
committerGalen Guyer <galen@galenguyer.com>2021-04-24 15:40:02 -0400
commit713f0eb14cc74384753bcf86b9d63e66db20a54a (patch)
treea72c22b52d8680828469b90b7be16409e388f018 /composer.c
parentdf02703679d9240b241a990368349e4487b01ed9 (diff)
Print the error if one occurs
Diffstat (limited to 'composer.c')
-rw-r--r--composer.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/composer.c b/composer.c
index 5ad0273..0e68400 100644
--- a/composer.c
+++ b/composer.c
@@ -1,6 +1,10 @@
+#include <stdio.h>
#include <unistd.h>
#define COMMAND "echo"
int main(int argc, char** argv) {
- execvp(COMMAND, argv);
+ int result = execvp(COMMAND, argv);
+ if (result < 0) {
+ perror(COMMAND);
+ }
} \ No newline at end of file