Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-gh-mirror
ensembl
Commits
576b0c66
Commit
576b0c66
authored
Mar 13, 2008
by
Andreas Kusalananda Kähäri
Browse files
More useful messages in a couple of the throws()'s.
parent
da2ebf35
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
modules/Bio/EnsEMBL/Utils/Eprof.pm
modules/Bio/EnsEMBL/Utils/Eprof.pm
+4
-3
No files found.
modules/Bio/EnsEMBL/Utils/Eprof.pm
View file @
576b0c66
...
...
@@ -196,7 +196,7 @@ sub start {
my
(
$self
,
$tag
)
=
@_
;
if
(
!
defined
(
$tag
)
)
{
$self
->
throw
("
Must start on tag
");
$self
->
throw
("
No tag, can't start.
");
}
if
(
!
defined
(
$self
->
_tags
()
->
{
$tag
}
)
)
{
...
...
@@ -222,11 +222,12 @@ sub end {
my
(
$self
,
$tag
)
=
@_
;
if
(
!
defined
(
$tag
)
)
{
$self
->
throw
("
Must end on tag
");
$self
->
throw
("
No tag, can't end.
");
}
if
(
!
defined
(
$self
->
_tags
()
->
{
$tag
}
)
)
{
$self
->
throw
("
Ending with a nonexistant tag
");
$self
->
throw
(
sprintf
(
"
Ending with a nonexistant tag '%s'
",
$tag
)
);
}
$self
->
_tags
->
{
$tag
}
->
pop_stack
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment