File tree 5 files changed +9
-7
lines changed
5 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ fn on_npm_install_error(error: NpmInstallError) -> ErrorMessage {
114
114
115
115
NpmInstallError :: OpenTarball ( path, e) => error_message ( )
116
116
. error_type ( UserFacing ( SuggestRetryBuild :: Yes , SuggestSubmitIssue :: Yes ) )
117
- . header ( format ! ( "Failed to opening the downloaded {npm} package file" ) )
117
+ . header ( format ! ( "Failed to open the downloaded {npm} package file" ) )
118
118
. body ( formatdoc ! { "
119
119
An unexpected I/O occurred while opening the downloaded {npm} package file at {path}.
120
120
" , path = file_value( path) } )
@@ -125,7 +125,7 @@ fn on_npm_install_error(error: NpmInstallError) -> ErrorMessage {
125
125
. error_type ( UserFacing ( SuggestRetryBuild :: Yes , SuggestSubmitIssue :: Yes ) )
126
126
. header ( format ! ( "Failed to extract {npm} package file" ) )
127
127
. body ( formatdoc ! { "
128
- An unexpected I/O occurred while extracing the contents of the downloaded {npm} package file at {path}.
128
+ An unexpected I/O occurred while extracting the contents of the downloaded {npm} package file at {path}.
129
129
" , path = file_value( path) } )
130
130
. debug_info ( e. to_string ( ) )
131
131
. create ( ) ,
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ source: buildpacks/nodejs-npm-engine/src/errors.rs
6
6
7
7
! Failed to extract ` npm` package file
8
8
!
9
- ! An unexpected I / O occurred while extracing the contents of the downloaded ` npm` package file at ` /layers/npm/install/npm.tgz` .
9
+ ! An unexpected I / O occurred while extracting the contents of the downloaded ` npm` package file at ` /layers/npm/install/npm.tgz` .
10
10
!
11
11
! Use the debug information above to troubleshoot and retry your build .
12
12
!
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ source: buildpacks/nodejs-npm-engine/src/errors.rs
4
4
- Debug Info :
5
5
- Invalid permissions
6
6
7
- ! Failed to opening the downloaded ` npm` package file
7
+ ! Failed to open the downloaded ` npm` package file
8
8
!
9
9
! An unexpected I / O occurred while opening the downloaded ` npm` package file at ` /layers/npm/install/npm.tgz` .
10
10
!
Original file line number Diff line number Diff line change @@ -49,15 +49,17 @@ fn on_buildpack_error(error: NpmInstallBuildpackError) -> ErrorMessage {
49
49
fn on_node_build_scripts_metadata_error ( error : NodeBuildScriptsMetadataError ) -> ErrorMessage {
50
50
let NodeBuildScriptsMetadataError :: InvalidEnabledValue ( value) = error;
51
51
let value_type = value. type_str ( ) ;
52
+ let requires_metadata = style:: value ( "[requires.metadata]" ) ;
53
+ let buildplan_name = style:: value ( NODE_BUILD_SCRIPTS_BUILD_PLAN_NAME ) ;
52
54
error_message ( )
53
55
. error_type ( ErrorType :: UserFacing (
54
56
SuggestRetryBuild :: No ,
55
57
SuggestSubmitIssue :: Yes ,
56
58
) )
57
59
. header ( "Invalid build script metadata" )
58
60
. body ( formatdoc ! { "
59
- A participating buildpack has set invalid `[requires.metadata]` for the build plan \
60
- named `{NODE_BUILD_SCRIPTS_BUILD_PLAN_NAME}` .
61
+ A participating buildpack has set invalid {requires_metadata} for the build plan \
62
+ named {buildplan_name} .
61
63
62
64
Expected metadata format:
63
65
[requires.metadata]
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ impl Buildpack for NpmInstallBuildpack {
112
112
113
113
fn on_error ( & self , error : libcnb:: Error < Self :: Error > ) {
114
114
let error_message = errors:: on_error ( error) ;
115
- eprintln ! ( "{error_message}" ) ;
115
+ eprintln ! ( "\n {error_message}" ) ;
116
116
}
117
117
}
118
118
You can’t perform that action at this time.
0 commit comments