Skip to content

Commit 9943f2e

Browse files
committed
update ConfigurationError
1 parent d8d5a6f commit 9943f2e

File tree

1 file changed

+2
-1
lines changed
  • components/youtube_data_api/actions/upload-video

1 file changed

+2
-1
lines changed

components/youtube_data_api/actions/upload-video/common.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import fs from "fs";
22
import got from "got";
3+
import { ConfigurationError } from "@pipedream/platform";
34

45
export default {
56
async run({ $ }) {
@@ -14,7 +15,7 @@ export default {
1415
notifySubscribers,
1516
} = this;
1617
if ((!fileUrl && !filePath) || (fileUrl && filePath)) {
17-
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.");
1819
}
1920
const body = fileUrl
2021
? await got.stream(fileUrl)

0 commit comments

Comments
 (0)