File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -779,14 +779,15 @@ async function writeJuliaCommand<T extends ServerCommand["type"]>(
779779
780780 if ( isServerCommandError ( responseData ) ) {
781781 const data = responseData ;
782- error (
783- `Julia server returned error after receiving "${ command . type } " command:\n` +
784- data . error ,
785- ) ;
782+ let errorMessage =
783+ `Julia server returned error after receiving "${ command . type } " command:\n\n${ data . error } ` ;
784+
786785 if ( data . juliaError ) {
787- error ( data . juliaError ) ;
786+ errorMessage +=
787+ `\n\nThe underlying Julia error was:\n\n${ data . juliaError } ` ;
788788 }
789- throw new Error ( "Internal julia server error" ) ;
789+
790+ throw new Error ( errorMessage ) ;
790791 }
791792
792793 let data : ServerCommandResponse < T > ;
You can’t perform that action at this time.
0 commit comments