mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: Validate that tags are 100 characters or less (#62335)
Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
This commit is contained in:
@@ -304,7 +304,7 @@ export class BackendSrv implements BackendService {
|
||||
}
|
||||
}
|
||||
|
||||
showErrorAlert<T>(config: BackendSrvRequest, err: FetchError) {
|
||||
showErrorAlert(config: BackendSrvRequest, err: FetchError) {
|
||||
if (config.showErrorAlert === false) {
|
||||
return;
|
||||
}
|
||||
@@ -324,6 +324,7 @@ export class BackendSrv implements BackendService {
|
||||
|
||||
// Validation
|
||||
if (err.status === 422) {
|
||||
description = err.data.message;
|
||||
message = 'Validation failed';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user