File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ export async function checkForUpdates(): Promise<string | null> {
23
23
const currentVersion = packageInfo . version ;
24
24
25
25
if ( ! packageName || ! currentVersion ) {
26
- logger . warn ( "Unable to determine package name or version" ) ;
26
+ logger . warn ( "Unable to determine current package name or version" ) ;
27
27
return null ;
28
28
}
29
29
@@ -39,7 +39,8 @@ export async function checkForUpdates(): Promise<string | null> {
39
39
const latestVersion = data . version ;
40
40
41
41
if ( ! latestVersion ) {
42
- throw new Error ( "Unable to determine latest version" ) ;
42
+ logger . warn ( "Unable to determine determine latest published version" ) ;
43
+ return null ;
43
44
}
44
45
45
46
// Compare versions
@@ -50,7 +51,7 @@ export async function checkForUpdates(): Promise<string | null> {
50
51
return null ;
51
52
} catch ( error ) {
52
53
// Log error but don't throw to handle gracefully
53
- logger . error (
54
+ logger . warn (
54
55
"Error checking for updates:" ,
55
56
error instanceof Error ? error . message : String ( error )
56
57
) ;
You can’t perform that action at this time.
0 commit comments