Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
9806998d
Commit
9806998d
authored
Dec 15, 2006
by
Martyn Smith
Committed by
Martyn Smith
Dec 15, 2006
Browse files
Fix bootstrap behaviour for json errors on upgrade
parent
af1f763e
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/bootstrap.pl
View file @
9806998d
...
...
@@ -78,6 +78,9 @@ for my $thing (@things) {
if
(
$json_response
->
{
error
}
)
{
croak
qq{Failed to install $thing}
.
Dumper
(
$json_response
);
}
if
(
defined
$json_response
->
{
message
}
)
{
print
'
MESSAGE:
',
$json_response
->
{
message
};
}
}
# Request the core data page
...
...
@@ -87,6 +90,9 @@ $json_response = my_jsonToObj($m->content());
if
(
$json_response
->
{
error
}
)
{
croak
qq{Failed to install core data:}
.
Dumper
(
$json_response
);
}
if
(
defined
$json_response
->
{
message
}
)
{
print
'
MESSAGE:
',
$json_response
->
{
message
};
}
# Install done, now Log in
debug
("
Logging in...
");
...
...
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