Mark missing encryption key errors as Framework error (#184424)

Resolves: #180418

This PR marks `Encrypted Saved Objects plugin is missing encryption key`
errors as framework error.
This commit is contained in:
Ersin Erdal 2024-05-30 15:50:59 +02:00 committed by GitHub
parent cb9b7d2468
commit 9f12976c82
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -936,7 +936,7 @@ describe('Action Executor', () => {
expect(e.message).toBe(
'Unable to execute action because the Encrypted Saved Objects plugin is missing encryption key. Please set xpack.encryptedSavedObjects.encryptionKey in the kibana.yml or use the bin/kibana-encryption-keys command.'
);
expect(getErrorSource(e)).toBe(TaskErrorSource.USER);
expect(getErrorSource(e)).toBe(TaskErrorSource.FRAMEWORK);
}
});

View file

@ -317,7 +317,7 @@ export class ActionExecutor {
new Error(
`Unable to execute action because the Encrypted Saved Objects plugin is missing encryption key. Please set xpack.encryptedSavedObjects.encryptionKey in the kibana.yml or use the bin/kibana-encryption-keys command.`
),
TaskErrorSource.USER
TaskErrorSource.FRAMEWORK
);
}