Skip to content

Conversation

@jianingy
Copy link
Contributor

Hi,

This patch uses 'die' to report a malformed yaml error.

Well, I dont think use $self->error in _init is a good idea since Class.pm says that $self->error is used for handling method's error, for example,

warn($obj->error) if (!$obj->do_sth);

When we are in _init context, return $self->error('error message') actually returns an undef that makes the object invisible to a caller and make it impossible to get $obj->{_error}.

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.

1 participant