-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathtemplates.js
More file actions
39 lines (30 loc) · 1.14 KB
/
templates.js
File metadata and controls
39 lines (30 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import { inspect } from 'util';
import dedent from 'dedent';
const PROCESS_OUTPUT = ({ output }) => dedent `
Process output:
${output}
`;
export const BASIC_ERROR_MESSAGE = data => dedent `
An error was thrown.
Error data:
${ inspect(data) }
`;
export const BROWSER_PATH_NOT_SET = () => dedent `
Unable to run the browser. The browser path or command template is not specified.
`;
export const UNABLE_TO_RUN_BROWSERS = ({ path }) => dedent `
Unable to run the browser. The file at ${path} does not exist or is not executable.
`;
export const NATIVE_BINARY_HAS_FAILED = ({ binary, exitCode, output }) => dedent `
The ${binary} process failed with the ${exitCode} exit code.
${ output ? PROCESS_OUTPUT({ output }) : '' }
`;
export const UNABLE_TO_ACCESS_AUTOMATION_API = ({ binary }) => dedent `
The ${binary} process cannot access the Automation API.
`;
export const UNABLE_TO_ACCESS_SCREEN_RECORDING_API = ({ binary }) => dedent `
The ${binary} process cannot access the Screen Recording API.
`;
export const UNABLE_TO_OPEN_DISPLAY = ({ binary }) => dedent `
The ${binary} process cannot open the display.
`;