Skip to content

Commit 3d4d8f0

Browse files
author
Guillaume Chau
committed
fix(ui): progress handler should not throw error (casuing process to exit)
1 parent ca01d95 commit 3d4d8f0

File tree

1 file changed

+2
-7
lines changed
  • packages/@vue/cli-ui/src/graphql-api/connectors

1 file changed

+2
-7
lines changed

packages/@vue/cli-ui/src/graphql-api/connectors/progress.js

+2-7
Original file line numberDiff line numberDiff line change
@@ -34,22 +34,17 @@ async function wrap (id, context, operation) {
3434
set({ id }, context)
3535

3636
let result
37-
let error = null
3837
try {
3938
result = await operation(data => {
4039
set(Object.assign({ id }, data), context)
4140
})
42-
} catch (e) {
43-
error = e
41+
} catch (error) {
42+
console.error(error)
4443
set({ id, error: error.message }, context)
4544
}
4645

4746
remove(id, context)
4847

49-
if (error) {
50-
throw error
51-
}
52-
5348
return result
5449
}
5550

0 commit comments

Comments
 (0)