fix: Improve error message when a scan fails #19
@ -33,7 +33,7 @@ steps:
|
|||||||
### develop
|
### develop
|
||||||
# ### Testing
|
# ### Testing
|
||||||
#
|
#
|
||||||
# If you have a a Docker daemon running on your local machine and the Drone
|
# If you have a Docker daemon running on your local machine and the Drone
|
||||||
# [command-line](https://readme.drone.io/cli/install) installed, you can run all
|
# [command-line](https://readme.drone.io/cli/install) installed, you can run all
|
||||||
# of the tests via `drone exec`. If not, or if you don't want to wait for the
|
# of the tests via `drone exec`. If not, or if you don't want to wait for the
|
||||||
# Docker container to spin up and install all of the prerequisites, you can make
|
# Docker container to spin up and install all of the prerequisites, you can make
|
||||||
|
@ -420,8 +420,7 @@ semiliterate.ensurelines
|
|||||||
from_file_path = os.path.join(from_directory, from_file)
|
from_file_path = os.path.join(from_directory, from_file)
|
||||||
try:
|
try:
|
||||||
with open(from_file_path) as original_file:
|
with open(from_file_path) as original_file:
|
||||||
utils.log.debug(
|
utils.log.debug(f"mkdocs-semiliterate: Scanning {from_file}...")
|
||||||
"mkdocs-simple-plugin: Scanning {}...".format(from_file))
|
|
||||||
# extraction = StreamExtract(
|
# extraction = StreamExtract(
|
||||||
extraction = StreamInclusion(
|
extraction = StreamInclusion(
|
||||||
input_stream=original_file,
|
input_stream=original_file,
|
||||||
@ -432,7 +431,8 @@ semiliterate.ensurelines
|
|||||||
patterns=self.patterns,
|
patterns=self.patterns,
|
||||||
**kwargs)
|
**kwargs)
|
||||||
return extraction.extract()
|
return extraction.extract()
|
||||||
except BaseException:
|
except BaseException as error:
|
||||||
utils.log.error("mkdocs-simple-plugin: could not build {}".format(
|
utils.log.error(
|
||||||
from_file_path))
|
f"mkdocs-semiliterate: could not build {from_file_path}:\n "
|
||||||
|
+ str(error))
|
||||||
return False
|
return False
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
name = mkdocs-semiliterate
|
name = mkdocs-semiliterate
|
||||||
version = 0.4.0
|
version = 0.4.1
|
||||||
description = Extension of mkdocs-simple-plugin adding easy content inclusion
|
description = Extension of mkdocs-simple-plugin adding easy content inclusion
|
||||||
long_description = file: README.md
|
long_description = file: README.md
|
||||||
long_description_content_type = text/markdown
|
long_description_content_type = text/markdown
|
||||||
|
@ -209,7 +209,7 @@ footer {
|
|||||||
padding-left: .5em;
|
padding-left: .5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1:hover .headerlink, h2:hover .headerlink, h3:hover .headerlink, h4:hover .headerlink, h5:hover .headerlink, h6:hover .headerlink{
|
h1:hover .headerlink, h2:hover .headerlink, h3:hover .headerlink, h4:hover .headerlink, h5:hover .headerlink, h6:hover .headerlink {
|
||||||
display:inline-block;
|
display:inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -209,7 +209,7 @@ footer {
|
|||||||
padding-left: .5em;
|
padding-left: .5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1:hover .headerlink, h2:hover .headerlink, h3:hover .headerlink, h4:hover .headerlink, h5:hover .headerlink, h6:hover .headerlink{
|
h1:hover .headerlink, h2:hover .headerlink, h3:hover .headerlink, h4:hover .headerlink, h5:hover .headerlink, h6:hover .headerlink {
|
||||||
display:inline-block;
|
display:inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -209,7 +209,7 @@ footer {
|
|||||||
padding-left: .5em;
|
padding-left: .5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1:hover .headerlink, h2:hover .headerlink, h3:hover .headerlink, h4:hover .headerlink, h5:hover .headerlink, h6:hover .headerlink{
|
h1:hover .headerlink, h2:hover .headerlink, h3:hover .headerlink, h4:hover .headerlink, h5:hover .headerlink, h6:hover .headerlink {
|
||||||
display:inline-block;
|
display:inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -209,7 +209,7 @@ footer {
|
|||||||
padding-left: .5em;
|
padding-left: .5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1:hover .headerlink, h2:hover .headerlink, h3:hover .headerlink, h4:hover .headerlink, h5:hover .headerlink, h6:hover .headerlink{
|
h1:hover .headerlink, h2:hover .headerlink, h3:hover .headerlink, h4:hover .headerlink, h5:hover .headerlink, h6:hover .headerlink {
|
||||||
display:inline-block;
|
display:inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -209,7 +209,7 @@ footer {
|
|||||||
padding-left: .5em;
|
padding-left: .5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1:hover .headerlink, h2:hover .headerlink, h3:hover .headerlink, h4:hover .headerlink, h5:hover .headerlink, h6:hover .headerlink{
|
h1:hover .headerlink, h2:hover .headerlink, h3:hover .headerlink, h4:hover .headerlink, h5:hover .headerlink, h6:hover .headerlink {
|
||||||
display:inline-block;
|
display:inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -209,7 +209,7 @@ footer {
|
|||||||
padding-left: .5em;
|
padding-left: .5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1:hover .headerlink, h2:hover .headerlink, h3:hover .headerlink, h4:hover .headerlink, h5:hover .headerlink, h6:hover .headerlink{
|
h1:hover .headerlink, h2:hover .headerlink, h3:hover .headerlink, h4:hover .headerlink, h5:hover .headerlink, h6:hover .headerlink {
|
||||||
display:inline-block;
|
display:inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user