Skip to content

Commit 26f5850

Browse files
Use print.error()
1 parent 42eafa7 commit 26f5850

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/commands/test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ async function runDocker(datasource, opts) {
177177
let doc = await yaml.load(filesystem.read('subgraph.yaml', 'utf8'))
178178
testsFolder = doc.testsFolder || './tests'
179179
dockerDir = testsFolder.endsWith('/') ? testsFolder + '.docker' : testsFolder + '/.docker'
180-
} catch (e) {
181-
print.error(e)
180+
} catch (error) {
181+
print.error(error)
182182
return
183183
}
184184

@@ -188,7 +188,7 @@ async function runDocker(datasource, opts) {
188188
print.info('Successfully generated Dockerfile.')
189189
} catch (error) {
190190
print.info('A problem occurred while generating the Dockerfile. Please attend to the errors below:')
191-
print.info(chalk.red(error))
191+
print.error(error)
192192
return
193193
}
194194

0 commit comments

Comments
 (0)