Skip to content

library is using panic intead of retuning error #33

@depohmel

Description

@depohmel

there are many places when the library is panicking this is not the desired approach.
example

 value *errors.fundamental = Failed to create volume. {Code:E0011, Description:Failed to find the storage with storage id %!d(string=Volume order failed). Description: %!s(MISSING) [Backend Error:SoftLayer_Exception_Order_AccountDiscount: As an active participant of the Technology Incubator Program, you may only place one order at a time. Currently you have a pending order that needs final disposition before you can place another order. (HTTP 500)], Type:StorageFindFailed, RC:500} ("Failed to create volume. {Code:E0011, Description:Failed to find the storage with storage id %!d(string=Volume order failed). Description: %!s(MISSING) [Backend Error:SoftLayer_Exception_Order_AccountDiscount: As an active participant of the Technology Incubator Program, you may only place one order at a time. Currently you have a pending order that needs final disposition before you can place another order. (HTTP 500)], Type:StorageFindFailed, RC:500}")

The ideal behavior would be to return an error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions