We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8d5a6f commit 9943f2eCopy full SHA for 9943f2e
components/youtube_data_api/actions/upload-video/common.mjs
@@ -1,5 +1,6 @@
1
import fs from "fs";
2
import got from "got";
3
+import { ConfigurationError } from "@pipedream/platform";
4
5
export default {
6
async run({ $ }) {
@@ -14,7 +15,7 @@ export default {
14
15
notifySubscribers,
16
} = this;
17
if ((!fileUrl && !filePath) || (fileUrl && filePath)) {
- throw new Error("This action requires either File URL or File Path. Please enter one or the other above.");
18
+ throw new ConfigurationError("This action requires either `File URL` or `File Path`. Please enter one or the other above.");
19
}
20
const body = fileUrl
21
? await got.stream(fileUrl)
0 commit comments