mirror of https://gitee.com/bigwinds/arangodb
Cleaner error message.
This commit is contained in:
parent
e956cbc0c6
commit
12490a53e7
|
@ -140,11 +140,11 @@ function request(req) {
|
||||||
} else if (req.formData) {
|
} else if (req.formData) {
|
||||||
// contentType = 'multipart/form-data';
|
// contentType = 'multipart/form-data';
|
||||||
// body = formData(req.formData);
|
// body = formData(req.formData);
|
||||||
throw new Error('multipart encoding is currently not supported');
|
throw new Error('Multipart form encoding is currently not supported.');
|
||||||
} else if (req.multipart) {
|
} else if (req.multipart) {
|
||||||
// contentType = 'multipart/related';
|
// contentType = 'multipart/related';
|
||||||
// body = multipart(req.multipart);
|
// body = multipart(req.multipart);
|
||||||
throw new Error('multipart encoding is currently not supported');
|
throw new Error('Multipart encoding is currently not supported.');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue