Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
spot-web-app
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Spot
spot-web-app
Commits
11e3ab65
Commit
11e3ab65
authored
Aug 08, 2018
by
Alexandre Duret-Lutz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
help text for error code 500
parent
80ae5e0c
Pipeline
#3267
passed with stage
in 1 minute and 7 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
4 deletions
+24
-4
client/src/LtlApp.js
client/src/LtlApp.js
+24
-4
No files found.
client/src/LtlApp.js
View file @
11e3ab65
...
...
@@ -239,6 +239,26 @@ function api_endpoint() {
+
process
.
env
.
REACT_APP_API_ENDPOINT
)
}
function
renderError
(
msg
)
{
console
.
log
(
msg
)
if
(
!
msg
.
startsWith
(
'
500
'
))
return
(
<
pre
>
{
msg
}
<
/pre>
)
;
return
(
<
React
.
Fragment
>
<
pre
>
{
msg
}
<
/pre
>
<
Typography
color
=
"
error
"
>
Our
server
automatically
kills
requests
that
take
longer
than
40
seconds
,
or
that
require
too
much
memory
.
<
br
/>
If
you
do
<
i
>
not
<
/i> think that is the case here, please send a screensho
t
and
any
helpful
detail
to
<
a
href
=
"
mailto:spot@lrde.epita.fr
"
>
<
code
>
spot
@
lrde
.
epita
.
fr
<
/code></
a
>
.
<
br
/>
If
you
<
i
>
do
<
/i> think that is the case, pleas
e
consider
<
a
href
=
"
https://spot.lrde.epita.fr/install.html
"
>
installing
Spot
<
/a> to run your experiments locally; this is
a
shared
service
.
<
/Typography
>
<
/React.Fragment>
)
}
function
handleErrors
(
response
)
{
if
(
!
response
.
ok
)
{
throw
Error
(
response
.
status
+
'
'
+
response
.
statusText
);
...
...
@@ -623,7 +643,7 @@ class LtlRewrite extends React.Component {
this
.
setState
({
result
:
null
});
}).
catch
(
error
=>
{
clearTimeout
(
this
.
timer
);
this
.
setState
({
result
:
<
pre
>
{
error
.
message
}
<
/pre>
}
)
;
this
.
setState
({
result
:
renderError
(
error
.
message
)
});
});
}
...
...
@@ -775,7 +795,7 @@ class LtlStudy extends React.Component {
this
.
setState
({
result
:
this
.
buildResult
(
res
)
});
}).
catch
(
error
=>
{
clearTimeout
(
this
.
timer
);
this
.
setState
({
result
:
<
pre
>
{
error
.
message
}
<
/pre>
}
)
;
this
.
setState
({
result
:
renderError
(
error
.
message
)
});
});
}
...
...
@@ -880,7 +900,7 @@ class LtlTranslate extends React.Component {
this
.
setState
({
result
:
this
.
buildResult
(
res
)
});
}).
catch
(
error
=>
{
clearTimeout
(
this
.
timer
);
this
.
setState
({
result
:
()
=>
<
pre
>
{
error
.
message
}
<
/pre>
}
)
;
this
.
setState
({
result
:
()
=>
renderError
(
error
.
message
)
});
});
}
...
...
@@ -1111,7 +1131,7 @@ class LtlCompare extends React.Component {
this
.
setState
({
result
:
this
.
buildResult
(
res
)
});
}).
catch
(
error
=>
{
clearTimeout
(
this
.
timer
);
this
.
setState
({
result
:
<
pre
>
{
error
.
message
}
<
/pre>
}
)
;
this
.
setState
({
result
:
renderError
(
error
.
message
)
});
});
}
...
...
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