Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -931,9 +931,6 @@ public boolean supportsMutationsInternal() {
return false;
}
if (!getData().getDatasetChanges().isModeCrud()) {
LOGGER.warn(
"Feature provider with id '{}' does not support mutations: datasetChanges.mode is not 'CRUD'",
getId());
return false;
}

Expand Down Expand Up @@ -1340,10 +1337,17 @@ private MutationResult writeFeatures(
.withResult((Builder) builder)
.handleError(
(result, throwable) -> {
Throwable error =
throwable instanceof PSQLException || throwable instanceof JsonParseException
? new IllegalArgumentException(throwable.getMessage())
: throwable;
Throwable error = throwable;

if (throwable instanceof PSQLException
|| throwable instanceof JsonParseException) {
error =
new IllegalArgumentException(
"Invalid feature data. You may be able to obtain more information about the problem by adding the header ‘Prefer: handling=strict’ to the request.",
throwable);
LogContext.errorAsDebug(LOGGER, throwable, "Error during feature mutation");
}

return result.error(error);
})
.handleItem((Builder::addIds))
Expand Down