Files
pybricks-code/src/explorer/error.ts
T
David Lechner 7232bf6153 add better error message when no files to backup
Instead of showing unexpected error, show message explaining that
there are no files to be backed up and how to fix it.

Fixes: https://github.com/pybricks/support/issues/681
2022-07-06 17:56:08 -05:00

11 lines
328 B
TypeScript

// SPDX-License-Identifier: MIT
// Copyright (c) 2022 The Pybricks Authors
import { CustomError } from '../utils/customError';
/** Specific errors for editor subsystem. */
export type ExplorerErrorName = 'NoFiles';
/** Error class for editor subsystem. */
export class ExplorerError extends CustomError<ExplorerErrorName> {}