This commit is contained in:
paoloar77
2024-12-08 12:11:17 +01:00
parent 166ba2476f
commit f7c48b0d73

View File

@@ -37,7 +37,7 @@ class ArticleController extends Controller
} catch (\Exception $e) {
// Registrazione dell'errore
return response()->json(['error' => 'Si è verificato un errore durante il recupero dei dati: ' . $e->getMessage()], 500);
return ['error' => 'Si è verificato un errore durante il recupero dei dati: ' . $e->getMessage()];
}
return $articoli;