mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-25 21:06:08 +08:00
Convert cannot compile file into cannot compile cell
This commit is contained in:
parent
93532b8d63
commit
dd68f7ff1c
1 changed files with 8 additions and 1 deletions
|
|
@ -87,7 +87,14 @@ defmodule Livebook.Runtime.Evaluator.DefaultFormatter do
|
||||||
end
|
end
|
||||||
|
|
||||||
defp format_error(kind, error, stacktrace) do
|
defp format_error(kind, error, stacktrace) do
|
||||||
{blamed, stacktrace} = Exception.blame(kind, error, stacktrace)
|
{blamed, stacktrace} =
|
||||||
|
case error do
|
||||||
|
%CompileError{description: "cannot compile file (errors have been logged)" <> _, line: 0} ->
|
||||||
|
{%CompileError{description: "cannot compile cell (errors have been logged)"}, []}
|
||||||
|
|
||||||
|
_ ->
|
||||||
|
Exception.blame(kind, error, stacktrace)
|
||||||
|
end
|
||||||
|
|
||||||
banner =
|
banner =
|
||||||
case blamed do
|
case blamed do
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue