Skip to content

Commit

Permalink
Don't forward the underlying error code
Browse files Browse the repository at this point in the history
  • Loading branch information
mlocati committed Oct 24, 2023
1 parent 54e86c2 commit b53c3a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Telegram.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ public function getCommandsList(): array
}
}
} catch (Exception $e) {
throw new TelegramException('Error getting commands from path: ' . $path, $e->getCode(), $e);
throw new TelegramException('Error getting commands from path: ' . $path, 0, $e);
}
}

Expand Down

0 comments on commit b53c3a8

Please sign in to comment.