Skip to content

Commit

Permalink
Merge pull request #53628 from dhiltonp/gen
Browse files Browse the repository at this point in the history
Provide more information on the returner's "function not found error"
  • Loading branch information
Akm0d authored Jun 27, 2019
2 parents b1c881a + bc338af commit 378e137
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions salt/utils/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def store_job(opts, load, event=None, mminion=None):
try:
load['jid'] = mminion.returners[prep_fstr](nocache=load.get('nocache', False))
except KeyError:
emsg = "Returner '{0}' does not support function prep_jid".format(job_cache)
emsg = "Returner function not found: {0}".format(prep_fstr)
log.error(emsg)
raise KeyError(emsg)
except Exception:
Expand All @@ -55,7 +55,7 @@ def store_job(opts, load, event=None, mminion=None):
try:
mminion.returners[saveload_fstr](load['jid'], load)
except KeyError:
emsg = "Returner '{0}' does not support function save_load".format(job_cache)
emsg = "Returner function not found: {0}".format(saveload_fstr)
log.error(emsg)
raise KeyError(emsg)
except Exception:
Expand Down

0 comments on commit 378e137

Please sign in to comment.