diff --git a/lib/aws_ex_ray/record/error/cause.ex b/lib/aws_ex_ray/record/error/cause.ex index 1579982..bbb7018 100644 --- a/lib/aws_ex_ray/record/error/cause.ex +++ b/lib/aws_ex_ray/record/error/cause.ex @@ -47,9 +47,9 @@ defmodule AwsExRay.Record.Error.Cause do end defp cwd() do - case System.cwd() do - nil -> "" - dir -> dir + case File.cwd() do + {:ok, dir} -> dir + _ -> "" end end