chore (messaging): udpate assertion report

This commit is contained in:
MickaelK
2026-09-08 16:53:16 +10:00
parent d48c9dfd1a
commit c0315003d8
+8 -7
View File
@@ -40,13 +40,14 @@ func assertFS(path string) {
}
}
fmt.Printf(`
===========================================================================
FATAL ERROR `+APPNAME+` can't write onto its own folder
DIAGNOSIS the folder belongs to uid=%d but the process runs as uid=%d
FIX chown -R %d:%d %s
===========================================================================
Shutting down ...
`, stat.Uid, uid, uid, gid, GetAbsolutePath(""))
=================================================================================
FATAL ERROR %s can't write onto its own folder
=================================================================================
TEST RESULT expected application folder owner to be uid=%d, got uid=%d
HOW TO FIX chown -R %d:%d %s
=================================================================================
shutting down ...
`, APPNAME, uid, stat.Uid, uid, gid, GetAbsolutePath(""))
time.Sleep(5 * time.Second)
os.Exit(1)
}