Adding error log message whenever an action execution fails because of invalid datasource
This commit is contained in:
parent
a9580effa7
commit
4fa254a449
|
|
@ -345,6 +345,8 @@ public class ActionServiceImpl extends BaseService<ActionRepository, Action, Str
|
|||
.flatMap(datasource -> {
|
||||
Set<String> invalids = datasource.getInvalids();
|
||||
if (!CollectionUtils.isEmpty(invalids)) {
|
||||
log.error("Unable to execute actionId: {} because it's datasource is not valid. Cause: {}",
|
||||
actionFromDto.getId(), ArrayUtils.toString(invalids));
|
||||
return Mono.error(new AppsmithException(AppsmithError.INVALID_DATASOURCE, ArrayUtils.toString(invalids)));
|
||||
}
|
||||
return pluginService.findById(datasource.getPluginId());
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user