Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
improves error messages for tile tile parsing errors
Browse files Browse the repository at this point in the history
Signed-off-by: Joerg Poecher <[email protected]>
  • Loading branch information
j-poecher committed May 9, 2022
1 parent 3cd1e6a commit eb57a7e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/sli/dashboard/custom_charting_tile_processing.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (p *CustomChartingTileProcessing) Process(tile *dynatrace.Tile, dashboardFi
sloDefinition, err := common.ParseSLOFromString(tile.FilterConfig.CustomName)
var sloDefError *common.SLODefinitionError
if errors.As(err, &sloDefError) {
failedTileResult := newFailedTileResultFromError(sloDefError.SLINameOrTileTitle(), "Custom charting tile not included due to parsing errors", err)
failedTileResult := newFailedTileResultFromError(sloDefError.SLINameOrTileTitle(), "Custom charting tile title parsing error", err)
return []*TileResult{&failedTileResult}
}

Expand Down
2 changes: 1 addition & 1 deletion internal/sli/dashboard/data_explorer_tile_processing.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (p *DataExplorerTileProcessing) Process(tile *dynatrace.Tile, dashboardFilt
sloDefinition, err := common.ParseSLOFromString(tile.Name)
var sloDefError *common.SLODefinitionError
if errors.As(err, &sloDefError) {
failedTileResult := newFailedTileResultFromError(sloDefError.SLINameOrTileTitle(), "Data Explorer tile not included due to parsing errors", err)
failedTileResult := newFailedTileResultFromError(sloDefError.SLINameOrTileTitle(), "Data Explorer tile title parsing error", err)
return []*TileResult{&failedTileResult}
}

Expand Down
2 changes: 1 addition & 1 deletion internal/sli/dashboard/usql_tile_processing.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (p *USQLTileProcessing) Process(tile *dynatrace.Tile) []*TileResult {
sloDefinition, err := common.ParseSLOFromString(tile.CustomName)
var sloDefError *common.SLODefinitionError
if errors.As(err, &sloDefError) {
failedTileResult := newFailedTileResultFromError(sloDefError.SLINameOrTileTitle(), "User Sessions Query tile not included due to parsing errors", err)
failedTileResult := newFailedTileResultFromError(sloDefError.SLINameOrTileTitle(), "User Sessions Query tile title parsing error", err)
return []*TileResult{&failedTileResult}
}

Expand Down

0 comments on commit eb57a7e

Please sign in to comment.