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
30dc5a6f
Commit
30dc5a6f
authored
Aug 27, 2020
by
aniket-engg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor changes
parent
1d9fbc31
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
compiler.ts
libs/remix-solidity/src/compiler/compiler.ts
+1
-0
compiler.ts
libs/remix-tests/src/compiler.ts
+1
-1
No files found.
libs/remix-solidity/src/compiler/compiler.ts
View file @
30dc5a6f
...
...
@@ -130,6 +130,7 @@ export class Compiler {
onCompilationFinished
(
data
:
CompilationResult
,
missingInputs
?:
string
[],
source
?:
SourceWithTarget
):
void
{
let
noFatalErrors
=
true
// ie warnings are ok
const
checkIfFatalError
=
(
error
:
CompilationError
)
=>
{
// Ignore warnings and the 'Deferred import' error as those are generated by us as a workaround
const
isValidError
=
(
error
.
message
&&
error
.
message
.
includes
(
'Deferred import'
))
?
false
:
error
.
severity
!==
'warning'
...
...
libs/remix-tests/src/compiler.ts
View file @
30dc5a6f
...
...
@@ -129,7 +129,7 @@ export function compileFileOrFiles(filename: string, isDirectory: boolean, opts:
],
function
(
err
:
Error
|
null
|
undefined
,
result
:
any
)
{
const
error
:
Error
[]
=
[]
if
(
result
.
error
)
error
.
push
(
result
.
error
)
const
errors
=
(
result
.
errors
||
error
).
filter
((
e
)
=>
(
e
.
type
===
'Error'
||
e
.
severity
===
'error'
)
)
const
errors
=
(
result
.
errors
||
error
).
filter
((
e
)
=>
e
.
type
===
'Error'
||
e
.
severity
===
'error'
)
if
(
errors
.
length
>
0
)
{
if
(
!
isBrowser
)
require
(
'signale'
).
fatal
(
errors
)
return
cb
(
new
CompilationErrors
(
errors
))
...
...
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