Add single quotes around variables in API error messages#1798
Closed
Copilot wants to merge 2 commits intoenh-lad-errors-apifrom
Closed
Add single quotes around variables in API error messages#1798Copilot wants to merge 2 commits intoenh-lad-errors-apifrom
Copilot wants to merge 2 commits intoenh-lad-errors-apifrom
Conversation
Co-authored-by: CodyCBakerPhD <51133164+CodyCBakerPhD@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Enhance API client error messages
Add single quotes around variables in API error messages
Feb 13, 2026
Contributor
|
Ah, it's OK just leave it for a dedicated follow-up |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## enh-lad-errors-api #1798 +/- ##
===================================================
Coverage 50.44% 50.45%
===================================================
Files 84 84
Lines 11920 11920
===================================================
+ Hits 6013 6014 +1
+ Misses 5907 5906 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds single quotes around all variable values in API client error messages for consistency and improved readability.
Changes
Updated three error messages in
dandi/dandiapi.py:Dandiset not found: Quoted
self.dandi_instance.guiURLf"View available Dandisets at '{self.dandi_instance.gui}'."Asset not found (by ID): Quoted dandiset context string
f"No such asset: {asset_id!r} for '{self}'"Asset not found (by path): Quoted version identifier
f"No asset at path {path!r} in version '{self.version_id}'."Variables already using
!rformatting retained their implicit quotes.💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.