summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm>2019-05-28 12:20:28 +0000
committernicm <nicm>2019-05-28 12:20:28 +0000
commit299d4f3aaa801ee79920fadcb802ca51b0d639ec (patch)
treed13dfd154b2b26a0740d1b4db17cb1e1e1c6e271
parent0ec410689c2ab265f7d9e94db3fcd09e8ff7ba60 (diff)
Exit 1 correctly if source-file fails.
-rw-r--r--cmd-source-file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd-source-file.c b/cmd-source-file.c
index a22c38e6..d88f74cf 100644
--- a/cmd-source-file.c
+++ b/cmd-source-file.c
@@ -96,6 +96,8 @@ cmd_source_file_exec(struct cmd *self, struct cmdq_item *item)
globfree(&g);
}
if (cfg_finished) {
+ if (retval == CMD_RETURN_ERROR && c->session == NULL)
+ c->retval = 1;
new_item = cmdq_get_callback(cmd_source_file_done, NULL);
cmdq_insert_after(item, new_item);
}