Ken hace 1 semana
padre
commit
cc102bcd93
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/Http/Controllers/api/ActivityReward.php

+ 1 - 1
app/Http/Controllers/api/ActivityReward.php

@@ -60,7 +60,7 @@ class ActivityReward extends BaseController
         } catch (ValidationException $e) {
             return $this->error($e->validator->errors()->first());
         } catch (Exception $e) {
-            return $this->error($e->getMessage());
+            return $this->error($e->getMessage(),[],$e->getCode());
         }
         return $this->success();
     }