Skip to content

Commit f1105bd

Browse files
tjarrattkrishna1m
andcommitted
Provide more accurate type for ErrorTracker.Error
Co-authored-by: Manmohan Krishna <[email protected]>
1 parent 1d39f46 commit f1105bd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/error_tracker/schemas/error.ex

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,13 @@ defmodule ErrorTracker.Error do
1212

1313
use Ecto.Schema
1414

15-
@type t :: %__MODULE__{}
15+
@type t :: %__MODULE__{
16+
kind: string(),
17+
reason: string(),
18+
source_line: string(),
19+
source_function: string(),
20+
status: :resolved | :unresolved
21+
}
1622

1723
schema "error_tracker_errors" do
1824
field :kind, :string

0 commit comments

Comments
 (0)