aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/vela.py
diff options
context:
space:
mode:
authorMichael McGeagh <michael.mcgeagh@arm.com>2020-12-02 15:29:22 +0000
committerMichael McGeagh <michael.mcgeagh@arm.com>2020-12-14 11:38:03 +0000
commit7a6f8438aaf750380a9fff799ca81ff5c7e2ae43 (patch)
tree163c6868ec869ae52a5cfd848207dcf0ef7b212e /ethosu/vela/vela.py
parent9b43f846b144d39bfb0cf16853bf6901c74b6672 (diff)
downloadethos-u-vela-7a6f8438aaf750380a9fff799ca81ff5c7e2ae43.tar.gz
MLBEDSW-2066 Improve Exception messages
Minor refactoring to use fstrings. Improve Error classes to correctly inherit the base class. Use existing exception classes instead of plain exceptions where it makes sense. Signed-off-by: Michael McGeagh <michael.mcgeagh@arm.com> Change-Id: I0941c04e91010da1db77299517a8e2d896371e77
Diffstat (limited to 'ethosu/vela/vela.py')
-rw-r--r--ethosu/vela/vela.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ethosu/vela/vela.py b/ethosu/vela/vela.py
index d27eef0e..bfc76ec9 100644
--- a/ethosu/vela/vela.py
+++ b/ethosu/vela/vela.py
@@ -55,7 +55,7 @@ def process(input_name, enable_debug_db, arch, model_reader_options, compiler_op
nng = model_reader.read_model(input_name, model_reader_options)
if not nng:
- raise InputFileError(input_name, "input file could not be read")
+ raise InputFileError(input_name, "Input file could not be read")
if compiler_options.verbose_operators:
nng.print_operators()
@@ -364,7 +364,7 @@ def main(args=None):
if args.config is not None:
for filename in args.config:
if not os.access(filename, os.R_OK):
- raise InputFileError(filename, "File not found or is not readable.")
+ raise InputFileError(filename, "File not found or is not readable")
sys.setrecursionlimit(args.recursion_limit)