Skip to content

Commit

Permalink
Add SecretDestroyed stacktrace. (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
geirolz authored Mar 13, 2024
1 parent 26b0314 commit f83d571
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/src/main/scala/com/geirolz/secret/SecretDestroyed.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import com.geirolz.secret.util.Location
import scala.util.control.NoStackTrace

case class SecretDestroyed(destructionLocation: Location)
extends RuntimeException(s"This secret has been already destroyed.\nLocation: $destructionLocation")
with NoStackTrace
extends RuntimeException(s"This secret has been already destroyed here: $destructionLocation")

object SecretDestroyed:
given Show[SecretDestroyed] = Show(_.getMessage)

0 comments on commit f83d571

Please sign in to comment.