diff options
author | Tor Lillqvist <tml@collabora.com> | 2019-04-02 14:02:51 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2019-04-02 21:45:17 +0300 |
commit | b1881e85172f642a28b38be817ec499947ae6029 (patch) | |
tree | 21a4b83ef5fea9bac92d6462f633195dc6b7b42b /sfx2 | |
parent | 9b325647f4e58c06a195a7d6a4e3946f015519ff (diff) |
Warn when getFileURLFromSystemPath() fails, not when it succeeds
Also, display the name that the call failed for in the warning message.
Change-Id: I0b6b7baca1d534b5bada5286b2b0e5b8e94f1832
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/docfile.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx index a389396caf56..e012672b6168 100644 --- a/sfx2/source/doc/docfile.cxx +++ b/sfx2/source/doc/docfile.cxx @@ -763,9 +763,9 @@ bool SfxMedium::IsStorage() { OUString aURL; if ( osl::FileBase::getFileURLFromSystemPath( pImpl->m_aName, aURL ) - == osl::FileBase::E_None ) + != osl::FileBase::E_None ) { - SAL_WARN( "sfx.doc", "Physical name not convertible!"); + SAL_WARN( "sfx.doc", "Physical name '" << pImpl->m_aName << "' not convertible to file URL"); } pImpl->bIsStorage = SotStorage::IsStorageFile( aURL ) && !SotStorage::IsOLEStorage( aURL); if ( !pImpl->bIsStorage ) |