File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ export const ItemsShow = () => {
124
124
< MaterialSymbol fill = { true } css = { exclamationIconStyle } >
125
125
error
126
126
</ MaterialSymbol >
127
- < div css = { errorMessageBodyStyle } > { errorMessage } </ div >
127
+ < div > { errorMessage } </ div >
128
128
</ p >
129
129
) ) }
130
130
</ div >
@@ -184,7 +184,3 @@ const errorStyle = css({
184
184
display : "flex" ,
185
185
marginTop : getSpace ( 3 / 2 ) ,
186
186
} ) ;
187
-
188
- const errorMessageBodyStyle = css ( {
189
- whiteSpace : "pre" ,
190
- } ) ;
Original file line number Diff line number Diff line change @@ -65,10 +65,15 @@ export const publish = async (argv: string[]) => {
65
65
return acc ;
66
66
} , [ ] as { name : string ; errors : string [ ] } [ ] ) ;
67
67
if ( invalidItemMessages . length > 0 ) {
68
- console . error ( "Validation error:" ) ;
68
+ const chalk = ( await import ( "chalk" ) ) . default ;
69
69
invalidItemMessages . forEach ( ( msg ) => {
70
- console . error ( msg . name , msg . errors ) ;
70
+ msg . errors . forEach ( ( err ) => {
71
+ let text = chalk . red . bold ( `${ msg . name } : ` ) ;
72
+ text += chalk . red ( err ) ;
73
+ console . error ( text ) ;
74
+ } ) ;
71
75
} ) ;
76
+
72
77
process . exit ( 1 ) ;
73
78
}
74
79
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ const checkOrganizationUrlName: CheckType = {
65
65
66
66
const checkSlide : CheckType = {
67
67
getMessage : ( ) =>
68
- "slideの設定はtrue/falseで入力してください\n\n【 破壊的な変更がありました】\n詳しくは以下のリリースをご確認ください\nhttps ://github.com/increments/qiita-cli/releases/tag/v0.5.0" ,
68
+ "slideの設定はtrue/falseで入力してください( 破壊的な変更がありました。詳しくはリリースをご確認ください https ://github.com/increments/qiita-cli/releases/tag/v0.5.0) " ,
69
69
isValid : ( { slide } ) => {
70
70
return typeof slide === "boolean" ;
71
71
} ,
You can’t perform that action at this time.
0 commit comments