]> git.localhorst.tv Git - alttp.git/blobdiff - app/Jobs/GenerateAosSeed.php
log aosr seed generation errors
[alttp.git] / app / Jobs / GenerateAosSeed.php
index b8c7e9e73c9d4343e4104daea3ff2ee9319f83bf..7169c3610f90f4714796329d809fb25bf65e05e1 100644 (file)
@@ -69,8 +69,12 @@ class GenerateAosSeed implements ShouldQueue
                        $seed->save();
 
                        $browser->close();
-               } catch (\Throwable) {
+               } catch (\Throwable $e) {
                        $seed->status = 'error';
+                       $seed->error_detail = [
+                               'type' => get_class($e),
+                               'message' => $e->getMessage(),
+                       ];
                        $seed->save();
                }
        }