       try do
         raise "oops"
       rescue
-        e ->
-          stacktrace = System.stacktrace # get the stacktrace of the exception
+        error ->
           Logger.warn("An exception has occurred")
-          reraise e, stacktrace
+          reraise error, System.stacktrace
       end
 
       # to


  defp issue_for(issue_meta, line_no) do
    format_issue issue_meta,
      message: "Use reraise inside a rescue block to preserve the original stacktrace.",
      trigger: "raise",
      line_no: line_no
  end

      try do
        raise "oops"
      rescue
        error ->
          Logger.warn("An exception has occurred")
          raise error
      end
  """

