Commit 31745897 authored by Leigh B Stoller's avatar Leigh B Stoller

Fix a spot where we leave the profile locked after an error.

parent b88f7d0a
......@@ -727,9 +727,11 @@ sub ModifyProfileInternal($$$)
my $retval = GetScriptParameters($script, \$output);
if ($retval) {
if ($retval < 0) {
fatal("Could not get paramdefs: $output!");
$$pmsg = $output;
return -1;
}
UserError($output);
$$pmsg = $output;
return 1;
}
# No versioning so need to clear existing paramdefs.
$update_args{"paramdefs"} = ($output ne "" ? $output : undef);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment