Skip to content

Commit 1d03391

Browse files
committed
Improve npx command output
1 parent 48886e6 commit 1d03391

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

convertToSingleHost.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,10 @@ if (projectName) {
261261
const cmdLine = `npx office-addin-manifest modify ${manifestPath} -g ${appId} -d ${projectName}`;
262262
childProcess.exec(cmdLine, (error, stdout) => {
263263
if (error) {
264-
Promise.reject(stdout);
264+
console.error(`Error updating the manifest: ${error}`);
265+
process.exitCode = 1;
265266
} else {
266-
Promise.resolve();
267+
console.log(stdout);
267268
}
268269
});
269270
}

0 commit comments

Comments
 (0)