We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f2e471 commit c3823ceCopy full SHA for c3823ce
src/fpm/cmd/publish.f90
@@ -82,7 +82,11 @@ subroutine cmd_publish(settings)
82
end if
83
84
! Make sure a token is provided for publishing.
85
- if (.not. allocated(settings%token)) call fpm_stop(1, 'No token provided.')
+ if (allocated(settings%token)) then
86
+ if (settings%token == '') call fpm_stop(1, 'No token provided.')
87
+ else
88
+ call fpm_stop(1, 'No token provided.')
89
+ end if
90
91
call downloader%upload_form(official_registry_base_url//'/packages', upload_data, error)
92
if (allocated(error)) call fpm_stop(1, '*cmd_publish* Upload error: '//error%message)
0 commit comments