{"draft":null,"from":14,"to":15,"files":[{"path":"client/src/api.ts","added":7,"removed":0,"diff":"--- a/client/src/api.ts\n+++ b/client/src/api.ts\n@@ -424,6 +424,13 @@\n \t\t\t);\n \t\t}\n \t\tconst text = await res.text();\n+\t\t// A server from before attachments has no upload route: it answers 404, or 400 because the body isn't JSON;\n+\t\t// one with the route but nowhere to keep files answers 501. Say so plainly, and that nothing was sent.\n+\t\tif (res.status === 404 || res.status === 501 || (res.status === 400 && /the body is JSON/.test(text)))\n+\t\t\tthrow new ApiError(\n+\t\t\t\t`${this.issuesServer} doesn't take attachments yet, so ${name} wasn't sent and nothing was written. Leave --attach off, or link the image instead.`,\n+\t\t\t\tres.status,\n+\t\t\t);\n \t\tif (!res.ok) throw new ApiError(`uploading ${name} answered ${res.status}: ${errorSentence(text)}`, res.status);\n \t\treturn JSON.parse(text) as Attachment;\n \t}"}],"unmatched":[]}