Skip to content

Commit 6ea7d69

Browse files
authored
Merge branch 'main' into patch-1
2 parents 74ac3e2 + d3d3f97 commit 6ea7d69

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Command/MeilisearchImportCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ private function formatIndexingResponse(array $batch, int $responseTimeout): arr
178178
$task = $indexInstance->getTask($apiResponse['taskUid']);
179179

180180
if ('failed' === $task['status']) {
181-
throw new TaskException($task['error']);
181+
throw new TaskException($task['error']['message']);
182182
}
183183

184184
$formattedResponse[$indexName] += $task['details']['indexedDocuments'];

src/Services/SettingsUpdater.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function update(string $indice, ?int $responseTimeout = null): void
7070
$task = $indexInstance->getTask($task['taskUid']);
7171

7272
if ('failed' === $task['status']) {
73-
throw new TaskException($task['error']);
73+
throw new TaskException($task['error']['message']);
7474
}
7575

7676
$this->eventDispatcher->dispatch(new SettingsUpdatedEvent($index['class'], $indexName, $variable));

0 commit comments

Comments
 (0)