|
|
@@ -320,6 +320,11 @@ func LoadConfig(configJson []byte) (*Config, error) {
|
|
|
return nil, ContextError(err)
|
|
|
}
|
|
|
|
|
|
+ // Do setEmitDiagnosticNotices first, to ensure config file errors are emitted.
|
|
|
+ if config.EmitDiagnosticNotices {
|
|
|
+ setEmitDiagnosticNotices(true)
|
|
|
+ }
|
|
|
+
|
|
|
// These fields are required; the rest are optional
|
|
|
if config.PropagationChannelId == "" {
|
|
|
return nil, ContextError(
|
|
|
@@ -389,9 +394,5 @@ func LoadConfig(configJson []byte) (*Config, error) {
|
|
|
"UpgradeDownloadUrl requires UpgradeDownloadClientVersionHeader and UpgradeDownloadFilename"))
|
|
|
}
|
|
|
|
|
|
- if config.EmitDiagnosticNotices {
|
|
|
- setEmitDiagnosticNotices(true)
|
|
|
- }
|
|
|
-
|
|
|
return &config, nil
|
|
|
}
|