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
dd4b1aa4
Commit
dd4b1aa4
authored
May 24, 2021
by
aniket-engg
Committed by
Aniket
May 24, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avoid duplicate error logs
parent
b0671004
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
hardhatClient.ts
libs/remixd/src/services/hardhatClient.ts
+1
-3
No files found.
libs/remixd/src/services/hardhatClient.ts
View file @
dd4b1aa4
...
...
@@ -24,7 +24,6 @@ export class HardhatClient extends PluginClient {
return
new
Promise
((
resolve
,
reject
)
=>
{
if
(
this
.
readOnly
)
{
const
errMsg
=
'[Hardhat Compilation]: Cannot compile in read-only mode'
console
.
log
(
'
\
x1b[31m%s
\
x1b[0m'
,
`
${
errMsg
}
`
)
return
reject
(
new
Error
(
errMsg
))
}
const
cmd
=
`npx hardhat compile --config
${
configPath
}
`
...
...
@@ -38,8 +37,7 @@ export class HardhatClient extends PluginClient {
result
+=
msg
+
'
\
n'
})
child
.
stderr
.
on
(
'data'
,
(
err
)
=>
{
console
.
log
(
'
\
x1b[31m%s
\
x1b[0m'
,
`[Hardhat Compilation]:
${
err
.
toString
()}
`
)
error
+=
err
.
toString
()
error
+=
`[Hardhat Compilation]:
${
err
.
toString
()}
`
})
child
.
on
(
'close'
,
()
=>
{
if
(
error
)
reject
(
error
)
...
...
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