Skip to content
This repository was archived by the owner on Sep 10, 2024. It is now read-only.

Commit 9d96cdd

Browse files
jaywinksandhose
authored andcommitted
Exit syn2mas advisor with non-zero exit code on errors
When running the advisor in an automated fashion, getting a non-zero exit code on errors helps enormously.
1 parent 724cec4 commit 9d96cdd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/syn2mas/src/advisor.mts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,4 +267,6 @@ export async function advisor(): Promise<void> {
267267
"Synapse config has login_via_existing_session enabled which must to be disabled or removed after migration",
268268
);
269269
}
270+
271+
process.exit(errors.length > 0 ? 1 : 0);
270272
}

0 commit comments

Comments
 (0)