[PR #11512] [MERGED] cli: catch upstream errors gracefully #12298

Closed
opened 2025-11-12 16:32:55 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/11512
Author: @pdevine
Created: 7/24/2025
Status: Merged
Merged: 7/24/2025
Merged by: @pdevine

Base: mainHead: pdevine/upstream


📝 Commits (1)

  • 8d486d9 cli: catch upstream errors gracefully

📊 Changes

1 file changed (+8 additions, -0 deletions)

View changed files

📝 cmd/cmd.go (+8 -0)

📄 Description

Instead of crashing out if the upstream gateway throws an error, display the same message as the UI.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/11512 **Author:** [@pdevine](https://github.com/pdevine) **Created:** 7/24/2025 **Status:** ✅ Merged **Merged:** 7/24/2025 **Merged by:** [@pdevine](https://github.com/pdevine) **Base:** `main` ← **Head:** `pdevine/upstream` --- ### 📝 Commits (1) - [`8d486d9`](https://github.com/ollama/ollama/commit/8d486d9b63aa91820879082b651229a6f9629f3c) cli: catch upstream errors gracefully ### 📊 Changes **1 file changed** (+8 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `cmd/cmd.go` (+8 -0) </details> ### 📄 Description Instead of crashing out if the upstream gateway throws an error, display the same message as the UI. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-12 16:32:55 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama-ollama#12298