opensauceryafrica/bifrost

add some validations

Closed this issue · 2 comments

add validations to some inputs like filename and file path (should contain a file extension), this might cause the file URL to be invalid

True...let's also create a new bifrost error code called ErrInvalidParameters so we have something like

return nil, &errors.BifrostError{
	Err:       fmt.Errorf("the error message"),
	ErrorCode: errors.ErrInvalidParameters,
}

Resolved