From 8a004ecf532ccd865fdef547ee5353ace91aaf7b Mon Sep 17 00:00:00 2001 From: Anonymous Date: Tue, 16 May 2017 17:16:14 +0100 Subject: [PATCH] always test your code before committing --- source/app.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/app.d b/source/app.d index 2656d97..2d3b0b4 100644 --- a/source/app.d +++ b/source/app.d @@ -109,7 +109,7 @@ int main(string[] args) auto zoom = execute([magic["sox"].str, dirName~"/01 "~tracks[0]["title"].str~".flac", "-n", "remix", "1", "spectrogram", "-X", "500", "-y", "1025", "-z", "120", "-w", "Kaiser", "-S", "0:30", "-d", "0:04", "-o", "SpecZoom.png"]); if (full.status != 0 || zoom.status != 0) - throw new Exception(); + throw new Exception("mktorrent failed"); writeln("SpecFull.png and SpecZoom.png written."); } catch (Exception e) { writeln("Generating spectrals failed! Is sox configured properly?"); @@ -130,7 +130,7 @@ int main(string[] args) try { auto t = execute([magic["mktorrent"].str, "-l", "20", "-a", announce, dirName]); if (t.status != 0) - throw new Exception(); + throw new Exception("mktorrent failed"); writeln("'"~dirName~".torrent' created."); } catch (Exception e) { writeln("Creating .torrent file failed! Is mktorrent configured properly?");