Skip to content

Commit

Permalink
Make stack traces optional
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Sep 20, 2024
1 parent c0b091e commit 5cb0df0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/core/guillotine.ExecError.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ import anticipation.*
import fulminate.*

case class ExecError(command: Command, stdout: LazyList[Bytes], stderr: LazyList[Bytes])
(using Diagnostics)
extends Error(m"execution of the command $command failed")
3 changes: 2 additions & 1 deletion src/core/guillotine.PidError.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ import anticipation.*
import fulminate.*
import rudiments.*

case class PidError(pid: Pid) extends Error(m"the process with PID ${pid.value} is not running")
case class PidError(pid: Pid)(using Diagnostics)
extends Error(m"the process with PID ${pid.value} is not running")
2 changes: 2 additions & 0 deletions src/core/guillotine.Sh.scala
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ import gossamer.*
import rudiments.*
import spectacular.*

import exceptionDiagnostics.empty

object Sh:
enum Context:
case Awaiting, Unquoted, Quotes2, Quotes1
Expand Down

0 comments on commit 5cb0df0

Please sign in to comment.