Skip to content

Commit 79f3f13

Browse files
Fix typo. Pass error.message to print.error() instead of the whole error object
1 parent 26f5850 commit 79f3f13

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
@@ -170,15 +170,15 @@ async function runDocker(datasource, opts) {
170170
let current_folder = await filesystem.cwd()
171171

172172
// Build the Dockerfile location. Defaults to ./tests/.docker if
173-
// a custom testsFolder is not delcared in the subgraph.yaml
173+
// a custom testsFolder is not declared in the subgraph.yaml
174174
let dockerDir = ""
175175

176176
try {
177177
let doc = await yaml.load(filesystem.read('subgraph.yaml', 'utf8'))
178178
testsFolder = doc.testsFolder || './tests'
179179
dockerDir = testsFolder.endsWith('/') ? testsFolder + '.docker' : testsFolder + '/.docker'
180180
} catch (error) {
181-
print.error(error)
181+
print.error(error.message)
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.error(error)
191+
print.error(error.message)
192192
return
193193
}
194194

0 commit comments

Comments
 (0)