Skip to content

Commit

Permalink
Add incompleteCode diagnostic type
Browse files Browse the repository at this point in the history
  • Loading branch information
ileasile authored and ligee committed Apr 16, 2020
1 parent af251ca commit b240fce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ data class ScriptDiagnostic(
const val unspecifiedInfo = 0
const val unspecifiedError = -1
const val unspecifiedException = -2
const val incompleteCode = -3
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class JsScriptCompilerWithDependenciesProxy(private val environment: KotlinCoreE
)
}
is ReplCompileResult.Incomplete -> ResultWithDiagnostics.Failure(
ScriptDiagnostic(ScriptDiagnostic.unspecifiedError, "Incomplete code")
ScriptDiagnostic(ScriptDiagnostic.incompleteCode, "Incomplete code")
)
is ReplCompileResult.Error -> ResultWithDiagnostics.Failure(
ScriptDiagnostic(
Expand Down

0 comments on commit b240fce

Please sign in to comment.