summaryrefslogtreecommitdiffhomepage
path: root/github
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2025-11-02 23:38:56 -0600
committerAiden Cline <[email protected]>2025-11-02 23:38:56 -0600
commit88f12b08223fa1c0ff5275c8cc2f96ed64e887ab (patch)
tree397962ebb08aab680b408202ec21ff98dacf2893 /github
parent54af7f9e1801cfdbd329bd26d7462844f1adf4a6 (diff)
downloadopencode-88f12b08223fa1c0ff5275c8cc2f96ed64e887ab.tar.gz
opencode-88f12b08223fa1c0ff5275c8cc2f96ed64e887ab.zip
core: prevent TypeError when error handling encounters non-object errors
When API errors like token limit exceeded errors are passed as strings to error checking methods, the 'in' operator would throw a TypeError. This fix adds a type guard to check that the input is an object before attempting to access its properties, allowing proper error classification even when encountering unexpected error formats from providers.
Diffstat (limited to 'github')
0 files changed, 0 insertions, 0 deletions