Skip to content

Exception should not be swallowed when creating command instance #1014

Closed
@CyberKoo

Description

@CyberKoo

🎉 Feature Request

using exception chaining

Summary

throw new TelegramException('Error getting commands from path: ' . $path);

this line may be changed to
throw new TelegramException('Error getting commands from path: ' . $path, $e);

attach the original exception can be provide more information to the developer.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions