From 5117c9d4453ea876bf1edb3aff1770ea0351032f Mon Sep 17 00:00:00 2001 From: James Brechtel Date: Thu, 21 May 2026 11:42:06 -0400 Subject: [PATCH] fix: remove relative path fallback in findConvertScript, rely on PATH only --- src/Roux/Server.hs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Roux/Server.hs b/src/Roux/Server.hs index 05e74ba..4a61fd5 100644 --- a/src/Roux/Server.hs +++ b/src/Roux/Server.hs @@ -479,7 +479,11 @@ findConvertScript = do mPath <- findExecutable "convert-to-cooklang" case mPath of Just p -> pure p - Nothing -> makeAbsolute "scripts/convert-to-cooklang" + Nothing -> + ioError $ + userError $ + "convert-to-cooklang not found on PATH. " + <> "Install it to /usr/local/bin/convert-to-cooklang or add it to PATH." -- | Write a temporary YAML config for the subprocess. writeConvertConfig :: FilePath -> AnthropicConfig -> IO ()