cli: removed unnecessary try-catch in plugin:serve
This commit is contained in:
@@ -14,14 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import chalk from 'chalk';
|
||||
import { startDevServer } from './server';
|
||||
|
||||
export default async () => {
|
||||
try {
|
||||
await startDevServer();
|
||||
} catch (error) {
|
||||
process.stderr.write(`${chalk.red(error.message)}\n`);
|
||||
process.exit(1);
|
||||
}
|
||||
await startDevServer();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user