Skip to content

Commit 2db1cf1

Browse files
committed
Update: Print that program has an error if exitCode != 0
1 parent 73a2957 commit 2db1cf1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

source/app.d

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,10 @@ int runMain(string[] args, string[] runArgs)
143143

144144
if(d.tree.name == "redub")
145145
return 0;
146-
return executeProgram(d.tree, runArgs);
146+
int ret = executeProgram(d.tree, runArgs);
147+
if(ret)
148+
errorTitle("Error: ", "Program exited with code ", ret);
149+
return ret;
147150
}
148151

149152
int describeMain(string[] args)

0 commit comments

Comments
 (0)