Skip to content

Commit

Permalink
Update FfmpegHandler error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
ScrubN committed Jun 10, 2024
1 parent 741fa72 commit 3dc8146
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions TwitchDownloaderCLI/Modes/FfmpegHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ private static void DownloadFfmpeg(ITaskProgress progress)
catch
{
var chmodCommand = RuntimeInformation.IsOSPlatform(OSPlatform.OSX) ? "chmod +x ffmpeg" : "sudo chmod +x ffmpeg";
progress.LogError($"Unable to update FFmpeg file permissions. Run '{chmodCommand}' if further FFmpeg errors occur.");
progress.LogError($"Unable to automatically update FFmpeg file permissions. Please run \"{chmodCommand}\" to allow FFmpeg to be executed.");
}
}

Expand All @@ -70,7 +70,8 @@ public static void DetectFfmpeg(string ffmpegPath, ITaskLogger logger)
return;
}

logger.LogError("Unable to find FFmpeg, exiting. You can download FFmpeg automatically with the command \"TwitchDownloaderCLI ffmpeg -d\"");
var processFileName = Path.GetFileName(Environment.ProcessPath);
logger.LogError($"Unable to find FFmpeg, exiting. You can download FFmpeg automatically with the command \"{processFileName} ffmpeg -d\"");
Environment.Exit(1);
}

Expand Down

0 comments on commit 3dc8146

Please sign in to comment.