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-hive
Commits
c346238d
Commit
c346238d
authored
Dec 15, 2020
by
Matthieu Muffato
Committed by
ens-bwalts
Aug 04, 2021
Browse files
Clear error message if the tweak attemps to change the dbID
parent
3620c2bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
modules/Bio/EnsEMBL/Hive/HivePipeline.pm
modules/Bio/EnsEMBL/Hive/HivePipeline.pm
+5
-0
No files found.
modules/Bio/EnsEMBL/Hive/HivePipeline.pm
View file @
c346238d
...
...
@@ -854,6 +854,11 @@ sub apply_tweaks {
$need_write
=
1
;
}
}
}
elsif
(
$attrib_name
eq
'
dbID
'
)
{
$tweakStructure
->
{
Error
}
=
TWEAK_ERROR_MSG
->
{
ACTION_ERROR
};
push
@response
,
"
Tweak.Error
\t
Changing the dbID of an Analysis is not supported
\n
";
}
elsif
(
$analysis
->
can
(
$attrib_name
))
{
my
$old_value
=
stringify
(
$analysis
->
$attrib_name
());
$tweakStructure
->
{
Return
}
->
{
OldValue
}
=
$old_value
;
...
...
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