File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -66,15 +66,15 @@ export class UnityProject {
6666 const match = versionText . match ( / m _ E d i t o r V e r s i o n W i t h R e v i s i o n : (?< version > (?: (?< major > \d + ) \. ) ? (?: (?< minor > \d + ) \. ) ? (?: (?< patch > \d + [ a b c f p x ] \d + ) \b ) ) \s ? (?: \( (?< changeset > \w + ) \) ) ? / ) ;
6767
6868 if ( ! match ) {
69- throw Error ( `No version match found!` ) ;
69+ throw Error ( `No version match found!\nProjectVersion.txt content:\n ${ versionText } ` ) ;
7070 }
7171
7272 if ( ! match . groups ?. version ) {
73- throw Error ( `No version group found!` ) ;
73+ throw Error ( `No version group found!\nProjectVersion.txt content:\n ${ versionText } ` ) ;
7474 }
7575
7676 if ( ! match . groups ?. changeset ) {
77- throw Error ( `No changeset group found!` ) ;
77+ throw Error ( `No changeset group found!\nProjectVersion.txt content:\n ${ versionText } ` ) ;
7878 }
7979
8080 this . version = new UnityVersion ( match . groups . version , match . groups . changeset , undefined ) ;
You can’t perform that action at this time.
0 commit comments