Make dylib plugin error message more user friendly

Summary: Make dylib plugin error message more user friendly by making the URL linkable.

Reviewed By: dshahidehpour

Differential Revision: D10304489

fbshipit-source-id: 3d5c0d8da426e1b5580d431f07b5291dad068ffc
This commit is contained in:
Itai Rosenberger
2018-10-10 18:51:14 -07:00
committed by Facebook Github Bot
parent f3d2e0983e
commit de85f9d455
2 changed files with 2 additions and 1 deletions

View File

@@ -9,7 +9,7 @@ import styled from '../styled/index.js';
import React from 'react'; import React from 'react';
import CodeBlock from './CodeBlock.js'; import CodeBlock from './CodeBlock.js';
const ErrorBlockContainer = styled(CodeBlock)({ export const ErrorBlockContainer = styled(CodeBlock)({
backgroundColor: '#f2dede', backgroundColor: '#f2dede',
border: '1px solid #ebccd1', border: '1px solid #ebccd1',
borderRadius: 4, borderRadius: 4,

View File

@@ -68,6 +68,7 @@ export {default as CodeBlock} from './components/CodeBlock.js';
// error // error
export {default as ErrorBlock} from './components/ErrorBlock.js'; export {default as ErrorBlock} from './components/ErrorBlock.js';
export {ErrorBlockContainer} from './components/ErrorBlock.js';
export {default as ErrorBoundary} from './components/ErrorBoundary.js'; export {default as ErrorBoundary} from './components/ErrorBoundary.js';
// interactive components // interactive components