From 0fa711ca58f9dda4969a57bb962c22943fe7ee65 Mon Sep 17 00:00:00 2001 From: Jason Robinson Date: Thu, 1 Feb 2024 17:46:12 +0200 Subject: [PATCH] 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. --- tools/syn2mas/src/advisor.mts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/syn2mas/src/advisor.mts b/tools/syn2mas/src/advisor.mts index c3b5d7458..4ba58b570 100644 --- a/tools/syn2mas/src/advisor.mts +++ b/tools/syn2mas/src/advisor.mts @@ -267,4 +267,6 @@ export async function advisor(): Promise { "Synapse config has login_via_existing_session enabled which must to be disabled or removed after migration", ); } + + process.exit(errors.length > 0 ? 1 : 0); }