@@ -401,7 +401,7 @@ def fillInDefaults(inputs, job):
401
401
elif job .get (fieldname ) is None and u"null" in aslist (inp [u"type" ]):
402
402
job [fieldname ] = None
403
403
else :
404
- raise WorkflowException ("Missing required input parameter `%s` " % shortname (inp ["id" ]))
404
+ raise WorkflowException ("Missing required input parameter '%s' " % shortname (inp ["id" ]))
405
405
406
406
407
407
def avroize_type (field_type , name_prefix = "" ):
@@ -506,7 +506,8 @@ def __init__(self, toolpath_object, **kwargs):
506
506
del c ["id" ]
507
507
508
508
if "type" not in c :
509
- raise validate .ValidationException (u"Missing `type` in parameter `%s`" % c ["name" ])
509
+ raise validate .ValidationException (u"Missing 'type' in "
510
+ "parameter '%s'" % c ["name" ])
510
511
511
512
if "default" in c and "null" not in aslist (c ["type" ]):
512
513
c ["type" ] = ["null" ] + aslist (c ["type" ])
@@ -522,15 +523,17 @@ def __init__(self, toolpath_object, **kwargs):
522
523
self .inputs_record_schema = cast (Dict [six .text_type , Any ], schema_salad .schema .make_valid_avro (self .inputs_record_schema , {}, set ()))
523
524
AvroSchemaFromJSONData (self .inputs_record_schema , self .names )
524
525
except avro .schema .SchemaParseException as e :
525
- raise validate .ValidationException (u"Got error `%s` while processing inputs of %s:\n %s" %
526
+ raise validate .ValidationException (u"Got error '%s' while "
527
+ "processing inputs of %s:\n %s" %
526
528
(Text (e ), self .tool ["id" ],
527
529
json .dumps (self .inputs_record_schema , indent = 4 )))
528
530
529
531
try :
530
532
self .outputs_record_schema = cast (Dict [six .text_type , Any ], schema_salad .schema .make_valid_avro (self .outputs_record_schema , {}, set ()))
531
533
AvroSchemaFromJSONData (self .outputs_record_schema , self .names )
532
534
except avro .schema .SchemaParseException as e :
533
- raise validate .ValidationException (u"Got error `%s` while processing outputs of %s:\n %s" %
535
+ raise validate .ValidationException (u"Got error '%s' while "
536
+ "processing outputs of %s:\n %s" %
534
537
(Text (e ), self .tool ["id" ],
535
538
json .dumps (self .outputs_record_schema , indent = 4 )))
536
539
0 commit comments