Ken 1 vecka sedan
förälder
incheckning
cc102bcd93
1 ändrade filer med 1 tillägg och 1 borttagningar
  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) {
         } catch (ValidationException $e) {
             return $this->error($e->validator->errors()->first());
             return $this->error($e->validator->errors()->first());
         } catch (Exception $e) {
         } catch (Exception $e) {
-            return $this->error($e->getMessage());
+            return $this->error($e->getMessage(),[],$e->getCode());
         }
         }
         return $this->success();
         return $this->success();
     }
     }