Skip to content

Commit f302a5d

Browse files
committed
fix(backend): melhorando mensagem de erro
1 parent 6016d77 commit f302a5d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

backend/app/Modules/Nfce/Exceptions/EmptyProductDataException.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace App\Modules\Nfce\Exceptions;
44

55
use App\Modules\_Shared\Exceptions\HttpExceptions\BadRequestException;
6+
use Illuminate\Support\Facades\Log;
67

78
class EmptyProductDataException extends BadRequestException
89
{
@@ -13,6 +14,7 @@ public function __construct()
1314

1415
public static function throwIfEmpty(array $array): void
1516
{
17+
Log::error('Empty product data. Data: ' . json_encode($array));
1618
if (empty($array)) {
1719
throw new self();
1820
}

0 commit comments

Comments
 (0)