projects
/
scpubgit/DKit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
97c0c46
)
slightly less useless error on lack of variable
Matt S Trout [Wed, 19 Feb 2014 21:07:02 +0000 (21:07 +0000)]
lib/DX/State.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/DX/State.pm
b/lib/DX/State.pm
index
b75a39d
..
899c0d9
100644
(file)
--- a/
lib/DX/State.pm
+++ b/
lib/DX/State.pm
@@
-29,7
+29,9
@@
has actions => (is => 'ro', default => sub { {} });
sub scope_var {
my ($self, $name) = @_;
- $self->by_id->{$self->scope->{$name}};
+ my $id = $self->scope->{$name}
+ or die "no such variable in scope: $name";
+ $self->by_id->{$id};
}
sub resolve_value {