Skip to content

Commit

Permalink
Improve language
Browse files Browse the repository at this point in the history
  • Loading branch information
tarjei committed May 14, 2024
1 parent afbe0f8 commit 93c2f38
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docs/events/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
<?php
Expand Down

0 comments on commit 93c2f38

Please sign in to comment.