feat(cli): classify every provisioning failure with stable codes

This commit is contained in:
Anthony Wong
2026-09-04 16:46:55 +07:00
committed by Cuong Manh Le
parent dd77d865b6
commit 0f821a7907
18 changed files with 2044 additions and 136 deletions
+9
View File
@@ -31,3 +31,12 @@ func (p *prog) Error() *ctrld.LogEvent {
func (p *prog) Notice() *ctrld.LogEvent {
return p.logger.Load().Notice()
}
// notifyExitToLogServer closes this run's connection to the HTTP log server,
// so a waiting "ctrld start" is not left waiting on it after this process
// exits. A nil connection (log server never started) is a no-op.
func (p *prog) notifyExitToLogServer() {
if p.logConn != nil {
_ = p.logConn.Close()
}
}