Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimized error message when does not set the value of @var for @Inject. #2429

Merged
merged 4 commits into from Sep 3, 2020

Conversation

limingxinleo
Copy link
Member

fix #2428

@@ -74,6 +74,8 @@ public function collectProperty(string $className, ?string $target): void
throw $exception;
}
$this->value = '';
} catch (\Throwable $exception) {
throw new AnnotationException("The @Inject value is invalid for {$className}->{$target}. Because {$exception->getMessage()}");
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里重置一下 Exception,不然错误信息看不到 @huangzhhui 你看一下,如果有啥不妥,我再改改。。

@limingxinleo limingxinleo merged commit cb66402 into hyperf:master Sep 3, 2020
@limingxinleo limingxinleo deleted the 2.0-doc branch September 3, 2020 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

hyperf升级2.0问题
1 participant