Template dependency injection

This commit is contained in:
Bán Dénes 2024-04-09 22:38:24 +02:00
parent 1da40bce6f
commit 886c22937d
12 changed files with 39 additions and 8 deletions

View file

@ -203,7 +203,7 @@ for (let w of cli_what) {
if (ex === 'should_have_thrown') {
throw new Error('This command should have thrown!')
}
const actual_error = ex.stderr.toString().split('\n')[0]
const actual_error = ex.stderr.toString()
if (dump) {
fs.writeFileSync(path.join(t, 'error'), actual_error)
}