UNPKG

bit-bin

Version:

<a href="https://opensource.org/licenses/Apache-2.0"><img alt="apache" src="https://img.shields.io/badge/License-Apache%202.0-blue.svg"></a> <a href="https://github.com/teambit/bit/blob/master/CONTRIBUTING.md"><img alt="prs" src="https://img.shields.io/b

38 lines (28 loc) 607 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ScopeNotFound = void 0; function _cli() { const data = require("../../cli"); _cli = function () { return data; }; return data; } class ScopeNotFound extends _cli().PaperError { constructor(scopePath) { super(generateMessage(scopePath)); this.scopePath = scopePath; } report() { return this.message; } } exports.ScopeNotFound = ScopeNotFound; function generateMessage(scopePath) { if (scopePath) { return `scope not found at ${scopePath}`; } return 'scope not found'; }