🎨 Improve auth code check exit code

Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-12-09 10:06:55 +08:00
parent bff6f06999
commit 2bf5bb50c2
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -140,7 +140,7 @@ func Boot() {
// The access authorization code command line parameter must be set when deploying via Docker https://github.com/siyuan-note/siyuan/issues/9328 // The access authorization code command line parameter must be set when deploying via Docker https://github.com/siyuan-note/siyuan/issues/9328
fmt.Printf("the access authorization code command line parameter (--accessAuthCode) must be set when deploying via Docker\n") fmt.Printf("the access authorization code command line parameter (--accessAuthCode) must be set when deploying via Docker\n")
fmt.Printf("or you can set the SIYUAN_ACCESS_AUTH_CODE env var") fmt.Printf("or you can set the SIYUAN_ACCESS_AUTH_CODE env var")
os.Exit(1) os.Exit(logging.ExitCodeSecurityRisk)
} }
} }
} }