diff --git a/CHANGELOG.md b/CHANGELOG.md index 09b6349..147c8f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [v5.1.3] - 2023-07-28 +### Fixed +- Include stdout + stderr in error messages. + ## [v5.1.2] - 2023-07-28 ### Fixed - Avoid duplicate `lua` dependencies in rockspec diff --git a/lua/luarocks-tag-release.lua b/lua/luarocks-tag-release.lua index 2ddbc13..a5d988c 100755 --- a/lua/luarocks-tag-release.lua +++ b/lua/luarocks-tag-release.lua @@ -76,7 +76,7 @@ local function luarocks_tag_release(package_name, package_version, specrev, args local stdout = read_file(exec_out) or '' local stderr = read_file(exec_err) or '' if exit_code ~= 0 then - on_failure('FAILED (exit code ' .. exit_code .. '): ' .. cmd .. ' ' .. stderr) + on_failure(cmd .. ' FAILED\nexit code: ' .. exit_code .. '\nstdout: ' .. stdout .. '\nstderr: ' .. stderr) end return stdout, stderr end