mirror of
https://github.com/status-im/metro.git
synced 2025-02-14 12:07:12 +00:00
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
27 lines
583 B
JavaScript
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;
|