Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/actionify/versions/0.ts>c.setError

Create and manage your GitHub workflows with TypeScript and Deno.
Go to Latest
function c.setError
import { c } from "https://deno.land/x/actionify@0.2.0/versions/0.ts";
const { setError } = c;

Creates an error message and prints the message to the log. This message will create an annotation, which can associate the message with a particular file in your repository. Optionally, your message can specify a position within the file.

import { Step, commands } from 'https://deno.land/x/actionify@0.1.0/mod.ts';

const step = Step
  .create()
  .run(commands.setError(
    'This is an error', {
      file: 'app.js',
      line: 1,
      col: 5,
      endColumn: 7,
  }));

Parameters

message: ExpressionValue
optional
options: NoticeOptions = [UNSUPPORTED]

Returns

Command<DefaultCommandTypes>