bitburner-src/src/NetscriptBladeburner.js
2021-09-08 23:47:34 -04:00

12 lines
489 B
JavaScript

export function unknownBladeburnerActionErrorMessage(functionName, actionType, actionName) {
return (
`ERROR: bladeburner.${functionName}() failed due to an invalid action specified. ` +
`Type: ${actionType}, Name: ${actionName}. Note that for contracts and operations, the ` +
`name of the operation is case-sensitive.`
);
}
export function unknownBladeburnerExceptionMessage(functionName, err) {
return `bladeburner.${functionName}() failed with exception: ` + err;
}