-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reverse Proxy endpoint changes for VSCode
- Added better error management - Fixed an issue where some error messages were not displayed correctly - Added an endpoint for the orchestrator to get the reverse proxy config
- Loading branch information
Showing
10 changed files
with
215 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package errors | ||
|
||
type StackItem struct { | ||
Error string | ||
Path *string | ||
Code *int | ||
Description *string | ||
} | ||
|
||
func NewStackItem(err SystemError) StackItem { | ||
stackItem := StackItem{ | ||
Error: err.Message(), | ||
} | ||
if err.Code() != 0 { | ||
stackItem.Code = &err.code | ||
} | ||
if err.Description() != "" { | ||
stackItem.Description = &err.description | ||
} | ||
if err.Path != "" { | ||
stackItem.Path = &err.Path | ||
} | ||
|
||
return stackItem | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.