Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
6a26a6d7
Commit
6a26a6d7
authored
Sep 18, 2017
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
return string instead of dom element
parent
cfb87473
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
txExecution.js
src/app/execution/txExecution.js
+4
-6
No files found.
src/app/execution/txExecution.js
View file @
6a26a6d7
'use strict'
var
yo
=
require
(
'yo-yo'
)
module
.
exports
=
{
/**
...
...
@@ -46,17 +45,16 @@ module.exports = {
if
(
!
txResult
.
result
.
vm
.
exceptionError
)
{
return
ret
}
var
error
=
yo
`<span> VM error:
${
txResult
.
result
.
vm
.
exceptionError
}
</span>
`
var
error
=
`VM error:
${
txResult
.
result
.
vm
.
exceptionError
}
.\n
`
var
msg
if
(
txResult
.
result
.
vm
.
exceptionError
===
'invalid opcode'
)
{
msg
=
yo
`<ul><li>The constructor should be payable if you send it value.</li>
<li>The execution might have thrown.</li></ul>`
msg
=
`\tThe constructor should be payable if you send value.\n\tThe execution might have thrown.\n`
ret
.
error
=
true
}
else
if
(
txResult
.
result
.
vm
.
exceptionError
===
'out of gas'
)
{
msg
=
yo
`<div>The transaction ran out of gas. Please increase the Gas Limit.</div>
`
msg
=
`\tThe transaction ran out of gas. Please increase the Gas Limit.\n
`
ret
.
error
=
true
}
ret
.
message
=
yo
`<div>
${
error
}
${
msg
}
Debug the transaction to get more information</div>
`
ret
.
message
=
`
${
error
}${
msg
}
\tDebug the transaction to get more information.
`
return
ret
}
}
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