|
@@ -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();
|
|
|
}
|
|
}
|