Skip to content

Commit

Permalink
Add error mesage to file not found
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasltavares authored Nov 6, 2024
1 parent a809ecb commit 31c59ab
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ private function deleteCurrentAvatar(): void
{
if ($this->contact->file) {
$this->contact->file->delete();
} else {
return [
'Error' => 'Contact file not found';
];
}
}

Expand Down

0 comments on commit 31c59ab

Please sign in to comment.