dtas-all
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/3] source/sox: use Process::Status#inspect for diagnostics


From: Eric Wong
Subject: [PATCH 1/3] source/sox: use Process::Status#inspect for diagnostics
Date: Fri, 26 Apr 2024 07:04:13 +0000

.exitstatus alone won't tell you about the signal received.
---
 lib/dtas/source/sox.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/dtas/source/sox.rb b/lib/dtas/source/sox.rb
index 6ca29bc..c03477e 100644
--- a/lib/dtas/source/sox.rb
+++ b/lib/dtas/source/sox.rb
@@ -24,7 +24,7 @@ def soxi_failed(infile, msg)
     return if @last_failed == infile
     @last_failed = infile
     case msg
-    when Process::Status then msg = "failed with #{msg.exitstatus}"
+    when Process::Status then msg = "failed with #{msg.inspect}"
     when 0 then msg = 'detected zero samples'
     end
     warn("soxi #{infile}: #{msg}\n")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]