From 93c2f38428ed290a4a39310c21e671355c0fdb66 Mon Sep 17 00:00:00 2001 From: Tarjei Huse Date: Tue, 14 May 2024 12:55:57 +0200 Subject: [PATCH] Improve language --- docs/events/events.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/events/events.md b/docs/events/events.md index af029b54..cf522726 100644 --- a/docs/events/events.md +++ b/docs/events/events.md @@ -55,11 +55,12 @@ services: ## Error events -The `UPLOAD_ERROR` event happens before an exception is thrown further up in the hierarchy. An error -when removing a file will emit the event but unless you handle it somehow the error will be swallowed and - the operation will preceede as if the file has been removed. +The `UPLOAD_ERROR` event happens when writing a file fails, and before an exception is thrown. -You can use the event to trow an error when the error occurs: +If an error occurs while removing a file, then the `REMOVE_ERROR` event gets fired. Failures in removing files do not +trigger any exceptions unless you choose to throw an error in the event handler for the `REMOVE_ERROR` event. + +You can use the event to throw an error when the error occurs: ```php