Skip to content

Commit

Permalink
fix(AssistantApiController#uploadInputFile): Log error
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <[email protected]>
  • Loading branch information
marcelklehr committed Aug 7, 2024
1 parent bf1ea1b commit 2015b8a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Controller/AssistantApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ public function uploadInputFile(?string $filename = null): DataResponse {
'filePath' => $fileInfo['filePath'],
]);
} catch (\Exception $e) {
$this->logger->error('Failed to store input file for assistant task', ['exception' => $e]);
return new DataResponse('Failed to store the input file: ' . $e->getMessage(), Http::STATUS_BAD_REQUEST);
}
}
Expand Down

0 comments on commit 2015b8a

Please sign in to comment.