Skip to content

Commit 48cfe69

Browse files
committed
added warning if no comp is selected
1 parent 72e21f6 commit 48cfe69

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/nexrender-core/src/tasks/render.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,13 @@ Estimated date of change to the new behavior: 2023-06-01.\n`);
107107

108108
// setup parameters
109109
params.push('-project', projectFile);
110-
params.push('-comp', job.template.composition);
110+
111+
if (job.template.composition) {
112+
params.push('-comp', job.template.composition);
113+
} else {
114+
settings.logger.log(`[${job.uid}] Warning: No composition specified in the template.`);
115+
}
116+
111117
params.push('-output', outputFileAE);
112118

113119
if (!settings.skipRender) {

0 commit comments

Comments
 (0)