metro/packages/buck-worker-tool/CommandFailedError.js
David Aurelio bce317701b Move worker protocol and babelRegisterOnly into their own packages
Summary: Moves the implementation of Buck’s worker protocol into its own package and babelRegisterOnly for better reusability.

Reviewed By: rafeca

Differential Revision: D7666896

fbshipit-source-id: ae297494ced3b8dd1f9d90983a640643d6ce7896
2018-04-23 04:00:51 -07:00

27 lines
583 B
JavaScript

/**
* Copyright (c) 2016-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
* @format
*/
'use strict';
/**
* Thrown to indicate the command failed and already output relevant error
* information on the console.
*/
class CommandFailedError extends Error {
constructor() {
super(
'The Buck worker-tool command failed. Diagnostics should have ' +
'been printed on the standard error output.',
);
}
}
module.exports = CommandFailedError;