BHoM / BHoM/Robot_Toolkit

Raise a proper error message if the filename for SaveAs does contain the .rtd extension

Open
#552 0 comments 0 reactions 0 assignees View on GitHub
type:bug
Dominant language
C#
Stars
12
Forks
4
PR merge metrics
No merged PRs in 30d

Description

#### Description:

When using the `SaveAs` command with an `Exectute` component - if the filename does contain the .rtd extension is produces the following error:

> 1. This component failed to run properly.
> - Error: Error HRESULT E_FAIL has been returned from a call to a COM component.
> - Occured in BH.Adapter.Robot.RobotAdapter.RunCommand(SaveAs command)
> called from BH.Adapter.Robot.RobotAdapter.Execute(IExecuteCommand command, ActionConfig actionConfig)
> - Are you sure you have the correct type of inputs? Check their description for more details.

#### Steps to reproduce:

See above.

#### Expected behaviour:

The adapter should raise an error instructing the user to provide a filepath with the correct extension.

#### Test file(s):

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.