@@ -41,7 +41,7 @@ func integrateVSCodeCmd() *cobra.Command {
41
41
Hidden : true ,
42
42
Short : "Integrate devbox environment with VSCode." ,
43
43
RunE : func (cmd * cobra.Command , args []string ) error {
44
- return runIntegrateVSCodeCmd (cmd , & flags )
44
+ return runIntegrateVSCodeCmd (cmd )
45
45
},
46
46
}
47
47
flags .config .register (command )
@@ -53,7 +53,7 @@ type parentMessage struct {
53
53
ConfigDir string `json:"configDir"`
54
54
}
55
55
56
- func runIntegrateVSCodeCmd (cmd * cobra.Command , flags * integrateCmdFlags ) error {
56
+ func runIntegrateVSCodeCmd (cmd * cobra.Command ) error {
57
57
58
58
// Setup process communication with node as parent
59
59
channel , err := go2node .RunAsNodeChild ()
@@ -68,7 +68,9 @@ func runIntegrateVSCodeCmd(cmd *cobra.Command, flags *integrateCmdFlags) error {
68
68
}
69
69
// Parse node process' message
70
70
var message parentMessage
71
- json .Unmarshal (msg .Message , & message )
71
+ if err = json .Unmarshal (msg .Message , & message ); err != nil {
72
+ return err
73
+ }
72
74
73
75
// todo: add error handling - consider sending error message to parent process
74
76
box , err := devbox .Open (& devopt.Opts {
0 commit comments