Datasource Config: Return error object on failed updates (#88661)
feat(datasource-config): return error if ds update fails
This commit is contained in:
1 parent
90c3d74955
commit
3bfa1ed9ed
1 file changed
+1
-1
@@ -277,7 +277,7 @@ export function updateDataSource(dataSource: DataSourceSettings) {
|
||||
|
||||
dispatch(testDataSourceFailed(formattedError));
|
||||
|
||||
return Promise.reject(dataSource);
|
||||
return Promise.reject(err);
|
||||
}
|
||||
|
||||
await getDatasourceSrv().reload();
|
||||
|
||||
Reference in new issue
Block a user